Although Julia doesn’t have many restrictions on naming and most combinations are allowed, it is good to follow some conventions as good practices:
- Generally, variable names are written in lowercase.
- Underscores are used to separate different words in a variable name, but it is not advisable to use names that would require underscores.
- Function and macros names are in lowercase. Underscores are not used.
- The first character of types and modules is uppercase. The separation between words in names is done using upper camel case.
- The functions that modify or write to any of their arguments end with "!" symbol.
We mentioned earlier that Julia is a strongly-typed language. Therefore, it is necessary for a variable’s type to ...