It's been possible since the '70s but I've seen a lot more talking about it in the last 5-10 years.
It's been possible since the '70s but I've seen a lot more talking about it in the last 5-10 years.
[1] https://github.com/norvig/paip-lisp/blob/master/lisp/patmatc...
In the modern acception of tree patterns (as opposed to text patterns aka regular expressions), I guess it comes from ML (and possibly prolog but prolog's unification goes even further?): it doesn't look like ISWIM had tree patterns and I can't find older references.
I was going to specialize in AI in my major, but I guess it was about 25 years too early. But that’s another tangent.
Aside from full packages like what lispm mentioned, implementing pattern matching (and later, full Prolog-style unification) in Lisp is a very common exercise in beginner Lisp textbooks, going back decades.