From: "Radosław Bułat" Date: 2008-05-30T01:15:07+09:00 Subject: Re: [PATCH] lambda with normal block syntax Guys, I do understand why you don't like -> and maybe it is not necessary with Eric Mahurin patch (I've tried it already and love it, it works as I expected when was learning ruby - metod do |a, b=10, *rest, &block| end etc). But why do you push Matz to use block = {|| ... } syntax ? It is to hard to use lambda/proc/Proc.new? Especially when {} could be mistaken with hash. When I learned Ruby I was so happy that (on the contrary to Perl) I don't have to parse code in my mind so much. I can just read code. And adding things like block = {} which could be very easly mistaken with hash is returning to so ugly Perl things. I ask again. What's wrong with fn = lambda {|p| puts p} ? And why below version should be considered better? fn = {|p| puts p} AFAIR Perl 5.10 (I don't use Perl but read somewhere) introduced two new operators: // and //=. I don't know exactly what it does but I can only say that it sucks. After all it could be easily mistaken with || and ||=. Please, don't try make Ruby so perlish. Eric, patch for doing parameters for blocks/lambads as methods works great. -- Rados�aw Bu�at http://radarek.jogger.pl - m�j blog