Re: Does ANSI Common Lisp have pattern matching?



On May 4, 3:14 pm, Jon Harrop <j...@xxxxxxxxxxxxxxxxx> wrote:
Alan Crowe wrote:
So a fair summary could be that ANSI Common Lisp does have
built in pattern matching, but never fixed on a slick
notation to distinguish between literals, types, and
variables, leaving the programmer to make that choice and
define some macros to implement it.

Yes. I think decent pattern matching would be a welcome addition to the next
Lisp standard.

Actually, Crowe (and Joswig) explained why pattern matching should not
be part of the language. Summary: There isn't a single definition
that handles all the relevant cases.

For those who want hand-cuffs, other languages happily provide them.

.



Relevant Pages