From: "Hal E. Fulton" Date: 2003-08-21T01:20:59+09:00 Subject: Re: Colons (was Re: Why would you abandon Ruby? (was)) ----- Original Message ----- From: "Doug Kearns" To: "ruby-talk ML" Sent: Wednesday, August 20, 2003 10:05 AM Subject: Colons (was Re: Why would you abandon Ruby? (was)) > > (For some inexplicable reason, the > > colons bother me especially from an aesthetic standpoint.) > > You'll love this then. :-) > > (1:18)-(doug@hairbear)-(pts/13)-(10002)-(~) > (0)% irb > irb(main):001:0> for x in 1..2 : > irb(main):002:1* puts x > irb(main):003:1> end > 1 > 2 > => 1..2 > irb(main):004:0> > > Why the new syntax? Yes, why? Maybe for single-line loops? But a semicolon would work there, as would a "do" (though that's a little more problematic in terms of scope). At least it's optional. If I *had* to use a colon there, it would really ruin my year. Hal