From: James Britt Date: 2009-02-18T05:30:31+09:00 Subject: Re: What are your favorite Ruby features? David Masover wrote: > Rick DeNatale wrote: >> On the other hand, I've always found leaving out parentheses in Ruby >> code, >> "just because you can" to tend to look far stranger to my eye than >> putting >> them in. In fact, sometimes when reading code without them I find myself >> having to read very slowly in order to figure out just how Ruby is >> parsing >> what I'm reading. >> > > I found that after a few days of deliberately only using parentheses > when needed, combined with a decent editor with synatx highlighting, and > I no longer need them at all. I don't find code unreadable with them -- > I have to work in JavaScript, after all -- but I don't have a problem > without them, and they do get annoying sometimes. 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. -- James Britt www.happycamperstudios.com - Wicked Cool Coding www.jamesbritt.com - Playing with Better Toys www.ruby-doc.org - Ruby Help & Documentation www.rubystuff.com - The Ruby Store for Ruby Stuff