Ruby and Python
graham73 at telocity.com
Sat Nov 18 22:19:21 CET 2000
> I've been playing with Ruby off and on for a few weeks. It's a nice
> language, with a few nice features, but it's not quite compelling
> enough to make me switch.
> First, functions and methods are not first class. In practice, it's not
> a problem. It's easy to bind an object and method into a single callable
> object and then pass that object around. Invoking it just doesn't look
> exactly like a traditional function/method call.
But functions in Python aren't first class either. The most obvious evidence
of this is having to write manual closures. How does this differ from
wrapping a function in a callable object (which you can do in Python too).
More information about the Python-list