|
|
|
|
|
by tromp
1369 days ago
|
|
> People can actually write useful programs in Lisp. I find programming in Haskell much more pleasant.
Using car/cdr feels rather primitive compared to pattern matching. > Lisp matters because it is a local maximum on the ratio of real-world utility to the size of the formalism. I feel that role is better served by Haskell, which is basically typed lambda calculus with syntactic sugar on top. Ben Lynn's awesome work [1] shows how minimal a Haskell implementation can be... [1] https://crypto.stanford.edu/~blynn/compiler/ |
|
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
Nobody needs to work without pattern matching in Lisp, save for maybe some hapless AutoCAD users.