From: "David A. Black" Date: 2009-02-03T06:36:59+09:00 Subject: Re: Variable declarations on one line On Tue, 3 Feb 2009, Pascal J. Bourguignon wrote: > Brian Candler writes: > >> Pascal J. Bourguignon wrote: >>> Why did you think you could program without parentheses? >> >> Probably because the OP's way of initialisation is natural to a C >> programmer. > > But C has its own precendence pitfalls. To be on the safe side, > always put parentheses everywhere. To be even safer, avoid being doctrinaire about things like parentheses and, instead, learn the way the tools you're using (Ruby, in this case) work, so that you can make informed choices. That's what the OP was trying to do, and it's a very good impulse. David -- David A. Black / Ruby Power and Light, LLC Ruby/Rails consulting & training: http://www.rubypal.com Coming in 2009: The Well-Grounded Rubyist (http://manning.com/black2) http://www.wishsight.com => Independent, social wishlist management!