Functional programming

Gregory Ewing greg.ewing at canterbury.ac.nz
Tue Mar 4 18:57:00 EST 2014


Marko Rauhamaa wrote:
> Python doesn't have anonymous inner classes, but it has named inner
> classes, and that's quite sufficient.

I would say it's Python's closures that make up for
not having Java's inner classes.

Or to put it another way, inner classes are Java's
kludgy way of working around a lack of closures.

-- 
Greg



More information about the Python-list mailing list