Re:How Ruby Borrowed a Decades Old Idea From Lisp
by masklinn on Tuesday September 18, 2012 @10:27AM
(#4538158)
> aren't ruby's blocks taken pretty much verbatim from smalltalk
Yes, with some crippling to fit them in a different syntax (Ruby's blocks are not first-class, so using more than one of them or methods on the blocks themselves isn't very nice)
And amongst the important similarities are return being nonlocal from within blocks.
Yes, with some crippling to fit them in a different syntax (Ruby's blocks are not first-class, so using more than one of them or methods on the blocks themselves isn't very nice)
And amongst the important similarities are return being nonlocal from within blocks.