From: "Serdar Kılıç" Date: 2006-02-02T09:20:46+09:00 Subject: Re: Indentation vs. "end"s Honestly, I prefer ENDs to indentation, I prefer curly braces to ENDs. But how about something like this: def foo @var } On 02/02/06, Austin Ziegler wrote: > On 01/02/06, Rubyist wrote: > > >> What would be even better would be to allow optional labels after end > > >> statements, such as "end class", "end def", so the parser can catch > > >> more errors. > > That sound like a good idea. But what about "if", "when", "for", > > "until" etc? > > Hmm... > > "endif", "end when", "end for", "end until", "end class", "enddef",... > > Umh! A never "ended" nightmare. > > I'm not particularly fond of IF ... ENDIF constructs, but one can simulate this: > > def foo > ... > end # def foo > > I don't do it, though. Vim does a damn fine job of folding things for me. > > -austin > -- > Austin Ziegler * halostatue@gmail.com > * Alternate: austin@halostatue.ca > > -- Cheers, Serdar Kilic http://weblog.kilic.net/