From: Brian Candler Date: 2008-10-08T16:58:29+09:00 Subject: Re: Why not adopt "Python Style" indentation for Ruby? unknown wrote: > "while then"? (kinda sounds funny to my ears :) It does. I was just trying to see what happens if you apply the idea consistently. I guess taken to extremes you'd also get def f(x,y) then x+y which I don't particularly like, but then one-line method definitions are pretty unusual. > And, in this case, is it really better than: > puts a.shift while !a.empty? No, not really. It might be useful for 'if' though. I quite often write code with lots of backwards lines: something if foo raise "Error" unless bar other if baz and it would be good to write them the right way round. (Although "unless...then" doesn't really read well either) More importantly, if (x = some_big_calculation) then x.something can't be written in backwards form currently. -- Posted via http://www.ruby-forum.com/.