From: Gavin Sinclair Date: 2002-10-30T21:30:31+09:00 Subject: Re: Style matter [Re: "multiple assignment in conditional"] From: "Bulat Ziganshin" > Hello Gavin, > > Wednesday, October 30, 2002, 9:48:48 AM, you wrote: > > > GS> action1(blah, blah, blah) > GS> LOG.info "done action 1" > GS> action2(blah, blah, blah) > GS> LOG.info "done action 1" > GS> action3(blah, blah, blah) > GS> LOG.info "done action 1" > > GS> is more readable to me as > > what about: > > action1(blah, blah, blah) > LOG.info "done action 1" > action2(blah, blah, blah) > LOG.info "done action 1" > action3(blah, blah, blah) > LOG.info "done action 1" > > Bulat mailto:bulatz@integ.ru Great idea, BUT: any editor worth its salt will reindent that the first chance it gets (i.e. align it all). Actually, Vim, which is worth all the salt in Australia, will re-indent x and y to x and y anyway, but I'm working on that. Ruby is a difficult language to handle in editors. Even Perl is easier because of the mandatory semicola :-) Your suggestion is what I have in my code currently. I just have to keep my hand away from the = key in normal mode :) Gavin