4 ms·
Clojure has a pattern matching library https://github.com/clojure/core.match https://github.com/clojure/core.match. And I think clojure is the most widely used
by youjiuzhifeng 10y ago
Clojure has a pattern matching library https://github.com/clojure/core.match https://github.com/clojure/core.match. And I think clojure is the most widely used Lisp dialect now.
- kiiski 10y agoThere is one for Common Lisp too https://github.com/m2ym/optima https://github.com/m2ym/optima
- armitron 10y agoNot by a long shot, Emacs Lisp is the most widely used Lisp dialect, by far. Clojure isn't even close.
- sitkack 10y agoMaybe if used means, "to create web applications".
- wtetzner 10y agoYes, I've used it, and it's quite nice. But it's not quite the same. In Elixir (and of course Erlang), pattern matching is pervasive. You use it when defining functions by defining multiple heads, each with a different patter. You can also use it when binding variables. For example: {:ok, result} = compute_data(some_value, another_value) If compute_data doesn't return a pair where the first value is :ok, it will throw an error.