From: Eleanor McHugh Date: 2009-05-29T06:24:30+09:00 Subject: Re: Pythonic indentation (or: beating a dead horse) On 28 May 2009, at 20:13, Caleb Clausen wrote: > On 5/28/09, Eleanor McHugh wrote: >> Until I have time to study your code I'll take your word for that. >> Have you tried framing endless.rb as a patch for MRI's lexer? and if >> so how significant are the changes? > > urk. I'm not familiar with the mri lexer code. In case I wasn't clear > before, when I said that it was relatively easy to add to the lexer, I > meant my lexer. Of course everything is much less fun in c than it is > in ruby; 150 lines of rubylexer hacks might be equivalent to 600 lines > or more of c. On the other hand, since 1.9 is already warning about > misaligned ends, half of the code needed may be done already. I'd say 150 lines of ruby more often ends up 1500 lines of C lol >> Then put out an [ANN] and if the community finds pythonic indentation >> valuable, it'll catch on. > > Perhaps I should, but I did it more as a lark and to prove that it > could be done. Well the real proof of the pudding is in figuring out how to patch it into the MRI and JRuby lexers as those are the majority of installed ruby runtimes. If it proves easy to do and doesn't muck up existing functionality it would then be worth discussing over on [ruby-core] and seeing what opposition it receives there. Ellie Eleanor McHugh Games With Brains http://slides.games-with-brains.net ---- raise ArgumentError unless @reality.responds_to? :reason