From: "Brian Schröder" Date: 2005-08-08T18:06:14+09:00 Subject: Re: new block notation (was: Re: ruby-dev summary 26468-26661) On 07/08/05, James Edward Gray II wrote: > On Aug 6, 2005, at 4:46 PM, Navindra Umanee wrote: > > > Just my +1 cents for Florian here. def or even lambda both sound > > great to me and feel natural to current Ruby -- the arrow thing is > > just plain weird and alien to the language or concepts IMHO. > > I think I'm finally starting to get the arrow idea: > > [...] anonymous array > {...} anonymous hash > -> (...) {...} anonymous function > > I guess I see the correlation there. > > Still, it just looks like ugly punctuation to me. Heck, when I want > an empty Array or Hash, I was Array.new/Hash.new instead of []/{}. > > I would like to think we can think up something better, but maybe I'm > just being too resistant to change... > > James Edward Gray II > > All the code examples I have seen here that use the comic-swearing ->(){} are making me dizzy. Please use a keyword for this. It seems totally un-rubyish and weird. Its like the class << operator that even though it is a simple concept that confuses not only newbies but a lot of people all the time. It took me quite long to understand it and I'm using it not as often as would make sense, because it just looks bad. Looking into my crystal ball I'd say that same would happen to lambda if it would be spelled with a weird array braces brakets combination. regards, Brian -- http://ruby.brian-schroeder.de/ Stringed instrument chords: http://chordlist.brian-schroeder.de/