From: Michael Lucas-Smith Date: 2002-01-01T06:43:24+09:00 Subject: [ruby-talk:29897] Re: Proc.class vs yield Joel VanderWerf wrote: > David Alan Black wrote: > > >>Hmmm... I wonder whether part of what you're not liking is the fact >>that the {} operator is overloaded: it's a block constructor and also >>a hash constructor. So there needs to be a way to deal with things >>like: >> >> some_method( { "hi" }, { "one" => 1 }, { |x| puts x }) >> > > There is still some room to overload {} a bit more. The syntax > > some_method {|x| x+1} {|y| y-1} > > has no meaning currently--it's a parse error. Could this syntax be given > a meaning so that > > def some_method(&b1, &b2) > end > > allowed the method to use both blocks? > Surely you'd need "some_method {|x| x+1}, {|y| y-1}" a comma in there? Michael