18 lines
502 B
Markdown
18 lines
502 B
Markdown
# 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`
|
|
|
|
```dcdl
|
|
Port = Int & >= 1;
|
|
Service = { port = Port; };
|
|
service = { port = 8080; } as Service;
|
|
mkService = (port: Port) => { port = port; };
|
|
```
|