From: Mike Wilson Date: 2004-01-09T05:24:28+09:00 Subject: Re: block delimiting >From: Pete Yadlowsky >Hi, > >I'm a Perl -> Python -> Ruby convert and new to this mailing list. > >I like Ruby very much except for one thing: all those "end" tokens >scattered >everywhere. For my style of coding, they are superfluous and, in my >opinion, >only serve to clutter the code. I very much like Python's indent blocking >style and would like to use it with Ruby. Indenting does everything I need >it >to do in terms of establishing structure and enhancing readability. Once >you >get used to this style (I've been using it for just about all languages and >for longer than Python has existed), delimiter tokens become unnecessary >and >unwanted. > I suppose that it's not to your liking to simply do something like: $ cat test.rb puts "hello" def myfunc puts "in myfunc" puts "finishing"; end def iffunc something = false something_else = true if something == true puts "in an if" elsif something_else == true puts "nope, I'm here"; end puts "ending iffunc"; end myfunc iffunc puts "done" $ ./test.rb hello in myfunc finishing nope, I'm here ending iffunc done Visually, it's the same effect, IMHO... _________________________________________________________________ Make your home warm and cozy this winter with tips from MSN House & Home. http://special.msn.com/home/warmhome.armx