Skip to content

Primitives

Use this when you need to look up an ilo type sigil or scalar/literal form.

SigilMeaningLiteral example
nnumber (f64)42, 3.14, -7
ttext (string)"hello", "line\n"
bbooltrue, false
_nil / wildcardnil
SigilMeaningExample
L Tlist of TL n, L t, L _
M K Vmap from K to VM t n
R T Eresult, ok=T, err=ER n t
O Toptional TO n
S a b csum type (enum)S red green blue
F A Rfunction typeF n t (takes n, returns t)
ilo
ok=~42 -- R _ _ with ok payload 42
bad=^"oh no" -- R _ t with err payload
some=?42 -- O n with value
none=? -- O _ empty
ilo
-- single-line comment

There are no multi-line comments. The double-hyphen runs to end of line.

  • Lowercase only. myVar is 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.