What's better about Ruby than Python?

Jacek Generowicz jacek.generowicz at cern.ch
Fri Aug 22 05:14:17 EDT 2003


Alex Martelli <aleax at aleax.it> writes:

> Jacek Generowicz wrote:
>    ...
> > For this reason it is rarely a good idea to define a macro for a
> > single use. However, it becomes an excellent idea if the idea the
> > macro expresses must be expressed repeatedly. The same is true of
> > functions, classes, modules ...
> 
> Not at all.  "Defining a function for a sinmgle use" is often a
> perfectly valid way to make a program MUCH CLEARER.

You are, of course, absolutely right.

However, I maintian that it is not _always_ a good idea. (eg Reductio
ad absurdum.)




More information about the Python-list mailing list