code blocks in Python
Greg Ewing (using news.cis.dfn.de)
g2h5dqi002 at sneakemail.com
Tue Nov 25 03:41:00 CET 2003
Hung Jung Lu wrote:
> Is there something obvious that I am missing here? Why isn't codeblock
> part of the language?
When code blocks are discussed, it's usually in the context of
user-defined control structures. For that, you need a way of
writing code blocks in-line where they're needed. You also
need a way of defining and using new control structures, and
some way of passing parameters to the code block would be
highly desirable. New syntax would be needed for all these.
Just having code blocks on their own without any of those
other things doesn't seem all that useful to me.
Greg Ewing, Computer Science Dept,
University of Canterbury,
Christchurch, New Zealand
More information about the Python-list