From: dblack@... Date: 2006-03-24T04:27:59+09:00 Subject: Re: questions/suggestions from a Ruby newbie Hi -- On Fri, 24 Mar 2006, Joe Van Dyk wrote: > On 3/22/06, dblack@wobblini.net wrote: >> Hi -- > >> I don't think people wanting brackets, as a general matter, is a >> "bird" in the first place :-) Consistency isn't really an issue here >> either, since if isn't a method; and if if were a method, but the "do" >> were optional, it wouldn't be consistent anyway. > > > That's a hella confusing paragraph, especially that last sentence. I'm surprised you find the first sentence clearer than the second, at least out of context :-) What I mean is: when it comes to killing two birds with one stone, the "bird" of people wanting to wrap conditionals in curly braces isn't something to worry about, because in general they don't. The second point is that if "if" were a method, but you could still give it a block that looked like this: if x y end with an implicit "do" after "x", then it wouldn't be consistent with other method calling syntax anyway. (Also, there's the further issue of what would happen if x were, itself, a method call.) David -- David A. Black (dblack@wobblini.net) Ruby Power and Light, LLC (http://www.rubypowerandlight.com) "Ruby for Rails" chapters now available from Manning Early Access Program! http://www.manning.com/books/black