495 B
495 B
命名規約
identifier の大文字・小文字に言語上の意味はない。 値、constraint、schema、派生設定はいずれも同じ式として扱われる。
読みやすさのため、次の命名を推奨する。
- object value:
lower_snake - function:
lowerCamel - primitive、schema、抽象的な constraint:
UpperCamel
Port = Int & >= 1;
Service = { port = Port; };
service = { port = 8080; } as Service;
mkService = (port: Port) => { port = port; };