Importing
Bring another module into scope withuse, giving its path. The / character is the path
separator between path segments:
:::
Visibility
Predicates and functions are public by default — once a module is imported, its declarations are visible to the importer. Mark a declarationprivate to hide it, so it
stays internal to its own module and never leaks across a use:
pred and func accept the private modifier. Use it for helpers that support a
module’s public surface but are not meant to be part of it.
Domain aliases
Adomain declaration names a reusable type. Write domain name : type. to introduce an
alias you can then use anywhere a type is expected:
node stands for u32, so the intent of each column is visible at a glance and a
later change to the underlying type is made in one place.
Pragmas
Set compiler and engine behavior from inside a program with
#pragma directives.