Named code blockes

James_Althoff at i2.com James_Althoff at i2.com
Mon Apr 23 19:49:01 EDT 2001


Alex Martelli writes:

Sure, naming something and passing the name as a stand-in
for the thing itself IS syntax at some level.  So what?  Do you
often use, say, unnamed classes, or modules, or attributes of
class instances, or feel that being able to leave them unnamed
would be "a very powerful programming device" wrt having
to name them?!  So what's so different about code blocks...?


Alex


<jim response>

In Java unnamed (anonymous, inner) classes
are used all over the place in Swing-GUI code.
Not advocating -- just pointing it out.  :-)

</jim response>






More information about the Python-list mailing list