|
|
|
|
|
by vkazanov
438 days ago
|
|
The other important bit here is garbage collection. Local and anonymous functions that capture lexical environments really, really work much better in languages built around GCs. Without garbage collection a trivial closure (as in javascript or lisps) suddenly needs to make a lot of decisions around referencing data that can be either on the stack or in the heap. |
|
Environments aren’t a thing in Haskell etc. does that mean it’s not functional?