Paths
Paths are structures identifying snippets of code that look like this:
The identifier some_module
, appearing before the ::
, is an optional module, pointing to code that exists in another library. It is always lowercase.
The identifier some_ident
is mandatory. It can represent a type (if it starts with a capital letter), a function name, a variable name, a constant name, etc.
More identifiers can be concatenated together to form a longer path (using .
).
A path is represent like this internally:
Expressions using Path
A path does not represent an expression by itself. The following expressions make use of path
: