Teaching Programming

Ed Keith e_d_k at yahoo.com
Tue May 4 14:45:15 EDT 2010


--- On Tue, 5/4/10, Stefan Behnel <stefan_ml at behnel.de> wrote:

> From: Stefan Behnel <stefan_ml at behnel.de>
> Subject: Re: Teaching Programming
> To: python-list at python.org
> Date: Tuesday, May 4, 2010, 11:52 AM
> 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.
> 
> Stefan
> 
> -- http://mail.python.org/mailman/listinfo/python-list
> 

I agree, but some propellants of literate programming would not. 

Knuth wanted the generated source to be unreadable, so people would not be tempted to edit the generated code.

     -EdK

Ed Keith
e_d_k at yahoo.com

Blog: edkeith.blogspot.com



      



More information about the Python-list mailing list