Does Python really follow its philosophy of "Readability counts"?
Paul Rubin
http
Wed Jan 14 22:37:37 EST 2009
"James Mills" <prologic at shortcircuit.net.au> writes:
> In fact, Python borrows features from the Functional Paradigm. Does
> this make it a Functional Language ? No. Why ? Because one of the
> clear requirements of the Functional Paradigm is that functions
> cannot have side affects.
I'd say functional programming emphasizes a style that avoids use
of side effects, but saying "functions cannot have side effects" is
a bit of an overstatement. Even Haskell lets you code effectfully
when necessary, using the type system (IO Monad) to separate
effectful code from pure code.
More information about the Python-list
mailing list