A top-level let is a .fln global

This commit is contained in:
Joseph Ferano 2026-09-26 05:27:27 +07:00
parent 3520e2d73e
commit 7e5ea096a5

View File

@ -667,6 +667,10 @@ Decided 2026-09-26: ~class Lambda(param, body, env)~, ~generic describe(v) -> dy
~method describe(f: Lambda)~ plus a block (the class as the parameter's type),
~multi kind(v) -> dyn = type-of(v)~, ~method kind(v) when :int~ plus a block.
** NEXT A top-level let is a global
Decided 2026-09-26: in .fln ~let x = v~ at column 0 reads ~(def x v)~ and replaces
~def~, which is refused with that fix; ~once~ and ~const~ stay.
** NEXT A struct fits on one line
Decided 2026-09-26: ~struct Pt(x: i32, y: i32)~ beside the block form, like a data
case; union and a struct with a parent too.