502 B
502 B
Naming Conventions
Identifier capitalization has no language-defined meaning. Values, constraints, schemas, and derived configurations are all expressions of the same kind.
For readability, the following conventions are recommended:
- Object values:
lower_snake - Functions:
lowerCamel - Primitives, schemas, and abstract constraints:
UpperCamel
Port = Int & >= 1;
Service = { port = Port; };
service = { port = 8080; } as Service;
mkService = (port: Port) => { port = port; };