3 ms·
If we talk about blocks, do we mean something different than a LAMBDA, e.g. a closure?
by mrottenkolber 12y ago
If we talk about blocks, do we mean something different than a LAMBDA, e.g. a closure?
- ScottBurson 12y agoNo. Smalltalk called these blocks, and Ruby does too. BTW a lambda expression and a closure are not the same thing. A lambda expression evaluates to a closure, just as an expression like "(make-instance 'foo)" (or "new Foo()" for non-Lispers) evaluates to an instance. The former, in each case, is a syntactic entity, something you can write in your program; the latter is an object inside the machine.