Primitives
Use this when you need to look up an ilo type sigil or scalar/literal form.
Scalar types
Section titled “Scalar types”| Sigil | Meaning | Literal example |
|---|---|---|
n | number (f64) | 42, 3.14, -7 |
t | text (string) | "hello", "line\n" |
b | bool | true, false |
_ | nil / wildcard | nil |
Container types
Section titled “Container types”| Sigil | Meaning | Example |
|---|---|---|
L T | list of T | L n, L t, L _ |
M K V | map from K to V | M t n |
R T E | result, ok=T, err=E | R n t |
O T | optional T | O n |
S a b c | sum type (enum) | S red green blue |
F A R | function type | F n t (takes n, returns t) |
Result and option literals
Section titled “Result and option literals”ok=~42 -- R _ _ with ok payload 42bad=^"oh no" -- R _ t with err payloadsome=?42 -- O n with valuenone=? -- O _ emptyComments
Section titled “Comments”-- single-line commentThere are no multi-line comments. The double-hyphen runs to end of line.
Identifiers
Section titled “Identifiers”- Lowercase only.
myVaris an error (ILO-L003). - Hyphens are allowed inside identifiers. Underscores are not (
ILO-L002). - Short by convention: 1 to 3 chars for locals, 2 to 4 for functions.
See Types & Functions for how primitives compose into function signatures.