4 ms·
"Even Smalltalk and Self use blocks (i.e. closures or lambdas) instead of providing some lightweight class/object literal notation." Blocks are objects! You ca
by omouse 18y ago
"Even Smalltalk and Self use blocks (i.e. closures or lambdas) instead of providing some lightweight class/object literal notation."
Blocks are objects! You can use them with various methods and they have state too!
The syntax is the lightweight class/object literal notation! Check out the class `BlockContext`.