From: John W Higgins Date: 2009-05-26T04:01:38+09:00 Subject: Re: Pythonic indentation (or: beating a dead horse) --001e680f10bc4fe0a1046ac13d3a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Mon, May 25, 2009 at 9:40 AM, J Haas wrote: Finally, I thought, an example! Time to dig out that old Ruby script > for preprocessing Python-style Ruby files... ah, there it is, on the > old MacBook Pro... copy it over to the current computer... hmm, no > doc... throw in a few quick and dirty patches to make it run; after > all, this is just a proof-of-concept, right? Edit the file, remove the > 'end's and insert colons after the keywords which began those blocks, > run it through and... hey, whaddaya know, [16, 22, 28], first time > through. Looks like ol' Tony really _was_ talking out of his ass, eh? > You accomplished ABSOLUTELY nothing with your magic trick here, and you darn well know it. You in no way shape or form made the indent context work at all. All you did was figure out that a regular expression could add the word "end" to a block of data when told to. No one ever said that wasn't possible. That would be like saying that python can actually handle multi line lambdas if I took your same concept and pre-processed a file to take any multi line lambdas and convert them to a function which is called as a single line lambda. So are you now saying that anyone that claims the python engine doesn't handle multi-line lambdas is talking out of their ass? If all you want is a preprocessor then it seems like you already have what you want and can be on your way to writing what you perceive as beautiful code immediately. Congrats and have at it, I'm not sure what more you would want at this point. If you feel that you want to push this further into the core then again - have at it - many folks have suggested that forking and getting some ACTUAL working code in front of folks is the surest way to get things accomplished! I doubt that anyone would truly object if you implemented what you suggest, they simply are of the mindset that it won't work - prove them wrong, and not with a magic trick either. Best of luck to you! John W Higgins --001e680f10bc4fe0a1046ac13d3a--