-
Notifications
You must be signed in to change notification settings - Fork 31
Conventions
Viktor Palmkvist edited this page Sep 10, 2020
·
5 revisions
We have agreed upon the following conventions:
- Naming should follow the CamelCase style
- Types are written as uppercase (CamelCase), e.g.
MyType
- Type parameters should be lowercase, e.g.
a
- Identifiers are written lowercase (camelCase), e.g.
myIdentifier
- Source code width should be limited to 80 characters unless there is a good reason to exceed this.
- Indentation should be done with 2 spaces.
- File names should be written with dashes, e.g.,
long-named-file.mc
.
- Variables, functions, and types should follow
snake_case
, while constructors useCamelCase
. - Source code width should be limited to 80 characters unless there is a good reason to exceed this.
- Indentation should be done with 2 spaces.