Lisp mentality vs. Python mentality

Ben Finney ben+python at benfinney.id.au
Sat Apr 25 10:36:27 CEST 2009


"Ciprian Dorin, Craciun" <ciprian.craciun at gmail.com> writes:

> On Sat, Apr 25, 2009 at 11:04 AM, Paul Rubin
> <http://phr.cx@nospam.invalid> wrote:
> > Use the builtin a==b, similar to (equal a b)
> 
>     But how about extensibility?

Easily extensible. If you want types that compare in different ways,
just define your new type so that the comparison methods do what you
want them to do.

-- 
 \         “It is the fundamental duty of the citizen to resist and to |
  `\          restrain the violence of the state.” —Noam Chomsky, 1971 |
_o__)                                                                  |
Ben Finney



More information about the Python-list mailing list