From: Robert Dober Date: 2009-02-18T21:04:32+09:00 Subject: Re: What are your favorite Ruby features? On Wed, Feb 18, 2009 at 9:48 AM, Florian Gilcher wrote: > > On Feb 17, 2009, at 9:30 PM, James Britt wrote: > >> David Masover wrote: >> Same here. I think of them as FGPs: Feel-good parentheses, used because >> they make people accustomed to C or Java feel more comfortable, though they >> do not contribute any real code value. > > > Thats a harsh statement for those that do actually like parantheses and not > because they are C//Java-Guys. I did not think so, unless you feel inferior because you are a C / Java guy, which IMHO you should not. > > For example, i find the following irritating and bad style: > > === > def initialize foo, bar, batz = {}, &block > #(vs.) > def initialize( foo, bar, batz = {}, &block ) > === I find the second irritating because those parens are sooo superfluous. Does that mean that the first idiom is bad style??? Certainly not, I can get used to it if I must. > > I see the argument list as a tuple and I like it to resemble one. Very valid point of view, but my brain sees it as a declaration. My brain could be trained to see it as a tuple, but right now I do not want to do that. Cheers Robert -- There are some people who begin the Zoo at the beginning, called WAYIN, and walk as quickly as they can past every cage until they get to the one called WAYOUT, but the nicest people go straight to the animal they love the most, and stay there. ~ A.A. Milne (from Winnie-the-Pooh)