Re: merits of Lisp vs Python
Steven D'Aprano <steve@REMOVE.T HIS.cybersource .com.auwrites:
You should check out generic functions in CLOS. Rather than writing a
ridiculously long case block, you can use EQL specialized functions.
It's a great way to do dispatch.
--
This post uses 100% post consumer electrons and 100% virgin photons.
At 2.6 miles per minute, you don't really have time to get bored.
--- Pete Roehling on rec.motorcycles
I bump into a lot of veteran riders in my travels.
--- David Hough: Proficient Motorcycling
Steven D'Aprano <steve@REMOVE.T HIS.cybersource .com.auwrites:
How am I being silly? Do you not believe that people write case blocks
with fifty tests? Okay, how about twenty? Ten? Eight?
with fifty tests? Okay, how about twenty? Ten? Eight?
ridiculously long case block, you can use EQL specialized functions.
It's a great way to do dispatch.
--
This post uses 100% post consumer electrons and 100% virgin photons.
At 2.6 miles per minute, you don't really have time to get bored.
--- Pete Roehling on rec.motorcycles
I bump into a lot of veteran riders in my travels.
--- David Hough: Proficient Motorcycling
Comment