From: Jason Roelofs Date: 2007-05-19T06:17:22+09:00 Subject: Re: Why not adopt "Python Style" indentation for Ruby? ------=_Part_58208_7631099.1179523042488 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 5/18/07, Yukihiro Matsumoto wrote: > > Hi, > > In message "Re: Why not adopt "Python Style" indentation for Ruby?" > on Sat, 19 May 2007 03:15:17 +0900, "S.Volkov" > writes: > > |imho: we need special terminator anyway, now it is 'end', could be > another; > |suggestion: introduce ';;' terminator for 'implicit blocks (not started > with > |class/module/def/do/begin), ie: > > For your information, 1.9 once had exact same syntax you've proposed > for a short while. I have a time machine. The idea was abandoned > since it caused serious unreadability. > > matz. Very glad to hear it. We don't want Ruby turning into Ocaml, rife with unreadable symbols and impossible to follow constructions. Ruby's do/end is just fine. So we can't do two-liner if statements. I've never, ever liked that syntax as it makes code at first glance confusing. e.g.: int i = 0, j = 0, x = 0; for(i = 0; i < 10 ; i++) for(j = 0; j < 30; j++); for(x = 0; x < 100; x++) printf(i + j + x); I'm a big fan of the more verbose keywords of Ruby because for one there are very few of them and two it makes the language easy to read. Jason ------=_Part_58208_7631099.1179523042488--