8.12

10 Naming Conventions🔗ℹ

The rhombus language’s bindings follow certain naming conventions. While Rhombus does not impose a naming convention syntactically, authors are new libraries are encouraged to stick to rhombus conventions where possible.

Most names use “snake case,” where the leading character is lowercase and multiple words are joined by _. Spelled-out words are preferred, but abbreviations are used in place of long words that must be written especially often. Examples:

A leading capital letter and “Pascal case” (where multiple words are joined by capitalizing each word) are used for a name that refers to a class, interface, a syntax class, or an annotation that in principle refers to an interface. Examples: