News for hackers. Stuff that matters.
Re:What is “Open Recursion”? by joshuamorton on Wednesday July 19, 2017 @01:53PM (#14806322)
Well no, because a closure is a function and an environment. A function closing over nothing is different than a function being unable to close over something.

You might define the interface of a closure as `closure(f: Function, env: Mapping[str, Any])`, or in other words a closure is a function and a mapping of variable names to values. That mapping can be empty, but that's different than the different interface `not_a_closure(f: Function)`, which is incapable of closing over anything, including the empty set.

There are no comments on this comment yet.