From: Ron Jeffries Date: 2002-01-05T20:14:09+09:00 Subject: [ruby-talk:30277] Re: Indentation (was: should I use ruby instead of perl) On Sat, 05 Jan 2002 06:04:00 GMT, "Mark Hahn" wrote: > >If the tail end (line going left) is all 'end' and '}' lines, then it could >look like this: > > >\ > \ > \ > \ > \ > \ > \ > | > | > >which is much shorter. The reason is that if you hit the end of the file, >or a def, module, or class keyword, all closing lines could be inserted by >the compiler for you, instead of giving an error like it does now. > >I discovered this trick a long time when TI claculators would allow input >such as: (5*(3+2 (no closing parens were needed). > >I hate it when I see a third of my lines filled up with closing lines >(noise), and I don't like the column restrictions that Python forces on you. >This solution would have the clean look of python without the column line-up >restriction. Lisp systems sometimes have a kind of hyper right paren that does the same thing. I find that my more common error is to hae a missing close way up in the middle. Closing everything at the end might make it compile, but it wouldn't make it run, almost every time. Ronald E Jeffries http://www.XProgramming.com http://www.objectmentor.com