4 ms·
raganwald, you answered "can we do away with blocks". What about "can we do away with lambdas"? Going by return semantics, Smalltalk has only blocks, not lambda
by avibryant 16y ago
raganwald, you answered "can we do away with blocks". What about "can we do away with lambdas"? Going by return semantics, Smalltalk has only blocks, not lambdas. I find that constraint bites me far less frequently than Javascript's opposite one.
Of course, there's also "can we do away with explicit returns". This is what Clamato does to be able to compile a Smalltalk-and-Ruby-like language efficiently into Javascript. You can always abuse exceptions to return early from however far up the stack when you really need to.