Functional programming

Gregory Ewing greg.ewing at canterbury.ac.nz
Wed Mar 5 00:57:00 CET 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