remove closures, keep lambdas

A closure was a code pointer beside an inline environment: capture
records, per-signature structs, conversion thunks and call helpers. It
is gone; a lambda still lifts to an ordinary function and a (fn ...)
value is still a bare code pointer. The capture budget, the environment
union and the closure glyph go with it.

The implementation is kept at tag 0.0.1.
This commit is contained in:
2026-11-11 09:17:54 +03:00
parent ad37a2492e
commit be2f4e407b
18 changed files with 118 additions and 1127 deletions

View File

@@ -343,8 +343,8 @@
;;;
;;; `_' in a pattern matches anything in that position, the same thing
;;; it means in a type. Without it every spelling has to be enumerated:
;;; `(closure ((int)) int)' and `(closure ((float)) int)' are separate
;;; clauses for what is one case.
;;; `(fn ((int)) int)' and `(fn ((float)) int)' are separate clauses for
;;; what is one case.
;;;
;;; A `_' written last takes everything that remains, because a type's
;;; words are spread rather than nested -- `(* const char)' is three