|
|
||
|
Gavin Kistner <gavin.kistner <at> anark.com> writes:
> The terseness of these near-lambdas[1] is one of Ruby's greatest
> accomplishments, IMO.
Ruby's greatest accomplishment was to copy Smalltalk? ;)
Ruby: obj.foobar { |x| 2*x }
Smalltalk: obj foobar: [ :x| 2*x ]