1
0
forked from alex-eg/sex

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

@@ -134,7 +134,7 @@ forms, and what remains."
;;; because the compiler composes these names and the user does not: a
;;; hand-written vec2__length would collide, and an identifier holding
;;; `__' is reserved in C++, which a pub header may be included from.
;;; Lifted closures carry a ƛ for the same reason.
;;; Lifted lambdas carry a λ for the same reason.
;;;
;;; zero? -> zeroʔ, clear! -> clearꜝ: a glottal stop and a raised
;;; exclamation mark, both letters. Not the retroflex click ǃ, which