Named code blockes

D-Man dsh8290 at rit.edu
Mon Apr 23 21:38:52 EDT 2001


On Mon, Apr 23, 2001 at 04:49:01PM -0700, James_Althoff at i2.com wrote:
| 
| <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>

IMO that is a kludge to work-around for a significant language
deficiency -- if functions (and classes) were first-class objects the
function object itself could be passed as the event handler!

-D





More information about the Python-list mailing list