Named code blockes

James_Althoff at i2.com James_Althoff at i2.com
Tue Apr 24 13:42:00 EDT 2001


Yep.  I agree.

Jim



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