Hello -- On Fri, 2 Mar 2001, chris wrote: > Don't know whether this discussion would be better here or on the email > list. My searches haven't found a previous discussion on this topic - > appologies if there was one. comp.lang.ruby and the ruby-talk list mirror each other, so it's on both. > I find Ruby to very a very enjoyable language. My other liking is Python. > Particularly enjoyable to me is how the Tab style indenting works. I find [...] > My question for all is, why not create an option in Ruby that would allow > the parser to accept code that used indentation instead of "end" statements? > Would this be really all that hard? I, myself, couldn't do it, but I get > the feeling that a relatively simple change to the parser would make it > possible. > > Specifically, I would envision some code that goes before the current parser > code that simply reads the file and uses the indentation levels to insert > "end"s where needed. Then the code would continue on to the normal parser. > All of this would be turned on/off with a switch or setting. Those who > don't like it never need to use it. Yes, but we'd have to see it :-) But if you must... why not write a filter in Ruby to do this? It could be an interesting exercise. David -- David Alan Black home: dblack / candle.superlink.net work: blackdav / shu.edu Web: http://pirate.shu.edu/~blackdav