Why I chose Python over Ruby
Xavier Morel
xavier.morel at masklinn.net
Mon Mar 6 05:50:01 EST 2006
Bil Kleb wrote:
> Xavier Morel wrote:
>>> 2) Ruby does not have true first-class functions living in the same
>>> namespace as other variables while Python does :
>>>
>>> In Ruby you need extra syntax that ruins the "first-class-ness" :
>>>
>> The extra syntax is a side-effect of the parensless call of method, it
>> doesn't mean that methods are not first-class objects.
>
> The parensless calls also allow one to write beautiful
> DSLs with Ruby.
>
> --
> Bil
> http://fun3d.larc.nasa.gov
Yes, they're a tradeoff, they have both advantages and inconvenients.
Matz decided that the advantages were more than worth the inconvenients,
and it is often true indeed for Matz built the language with this very
feature (and some others) in mind.
More information about the Python-list
mailing list