lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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 ]