3 ms·
Pattern matching appeared in Lisp in the 1960's. See The COMIT Feature in LISP II, https://www.softwarepreservation.com/projects/LISP/lisp2/MIT-AIM-76-Bobrow-CO
by kazinator 4y ago
Pattern matching appeared in Lisp in the 1960's. See The COMIT Feature in LISP II, https://www.softwarepreservation.com/projects/LISP/lisp2/MIT-AIM-76-Bobrow-COMIT_Feature-1965.pdf https://www.softwarepreservation.com/projects/LISP/lisp2/MIT...
Most mainstream Lisp dialects have some sort of structural pattern matching. Common Lisp has destructuring-bind, which is enough for avoiding car/cdr. Plus a number of advanced pattern matching libraries that are not just for matching lists.
Same with Scheme dialects.
Even Emacs Lisp has pattern matching: https://www.emacswiki.org/emacs/PatternMatching https://www.emacswiki.org/emacs/PatternMatching
Nobody needs to work without pattern matching in Lisp, save for maybe some hapless AutoCAD users.