Teaching Programming
Chris Rebert
clp2 at rebertia.com
Tue May 4 12:13:38 EDT 2010
More information about the Python-list mailing list
Tue May 4 12:13:38 EDT 2010
- Previous message (by thread): Teaching Programming
- Next message (by thread): Teaching Programming
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, May 4, 2010 at 8:52 AM, Stefan Behnel <stefan_ml at behnel.de> wrote: > Ed Keith, 04.05.2010 17:43: >> The PITA is having to keep track of the indentation of each embedded >> chunk and summing it for each level of indentation. This requires a fair >> amount of bookkeeping that would not otherwise be necessary. >> >> The original prototype simply replaced each embedded chunk with the text >> from the chunk definition, all indenting information was lost. It worked >> for most languages, but not Python. >> >> In testing the program I used two languages, Python and J. > > Well, then both of the language generators have benefited from your effort > because the generated complete code is properly indented and therefore much > more readable during debugging. I'd say it was worth it. Though there are auto-re-indenting programs for curly-brace languages you know. Cheers, Chris -- http://blog.rebertia.com
- Previous message (by thread): Teaching Programming
- Next message (by thread): Teaching Programming
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list