From: "Wolfgang Nádasi-Donner" Date: 2008-10-22T03:51:22+09:00 Subject: [ruby-core:19423] Re: Now that lambda has more powerful arguments... Dave Thomas schrieb: > is there anything that > > -> (..) { .. } > > can do that > > lambda {|...| ...} > > cannot do? If you include "it can be very confusing" into the list of possible answers, then the examples from "eigenclass.org" will show it... irb(main):001:0> -> a, b { a + b }.call(1,2) => 3 irb(main):002:0> c = 1; -> a, b; c { c = a + b }.call(1,2); c => 1 irb(main):003:0> c = 2; -> ;c { c = 1 }.call; c => 2 irb(main):004:0> c = 2; -> *d ; c { d }.call(1,2,3) => [1, 2, 3] irb(main):005:0> c = 2; -> ; c { c = 1 }.call; c => 2 Because the parantheses can be ommited, it can came closer to RegExes from the viewpoint of readability ;-) Wolfgang N�dasi-Donner