ilo 26.5.0

ilo - the token-minimal programming language AI agents write
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
-- Demonstrates that long-form builtin aliases (`head`, `length`, `tail`,
-- `concat`, etc.) are reserved as binding names with the same ILO-P011
-- protection as their canonical short forms (`hd`, `len`, `tl`, `cat`).
-- Originating papercut: rerun-prompt-generator bound `head=...` and got
-- silent empty output because the alias resolver rewrote `head` calls to
-- `hd` (the builtin), bypassing the user variable entirely (0.12.1 fix).
--
-- Correct shape: pick a non-alias name (`hdr`, `rest`, `joined`) instead.

main w:t>t
  xs=[w "world" "ilo"]
  hdr=hd xs
  rest=tl xs
  joined=cat rest " "
  fmt "{}! {} rocks" hdr joined

-- run: main hello
-- out: hello! world ilo rocks