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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user