5 ms·
That's awesome! Is pattern matching commonly used in Haskell? It's something I am implementing "by hand" for a project in Python, so I am really tempted to give
by S4M 12y ago
That's awesome! Is pattern matching commonly used in Haskell? It's something I am implementing "by hand" for a project in Python, so I am really tempted to give a shot to Egison - my project requires to do lots of things similar to the example with the poker hand, and I find it painful.
On the other hand the language is quite new and I have lots of code in python already for that project...
- exoarn 12y agoAs far as I'm aware pattern matching is commonly used in most functional languages (including haskell). Here is the page on pattern matching in haskell from the haskell wikibook: https://en.wikibooks.org/wiki/Haskell/Pattern_matching https://en.wikibooks.org/wiki/Haskell/Pattern_matching
- dfan 12y agoYes, pattern matching is about as fundamental to Haskell as assignment is to C.
- mattdeboard 12y agoPattern matching is a very popular feature in most modern FPs I'm familiar with. Elixir (http://elixir-lang.org/ http://elixir-lang.org/) has lovely built-in pattern matching syntax. Ditto for Scala.
- egi 12y agoHello! I'm the creator of Egison. Would you tell me what your project like? I got an idea of Egison when I was working with logic expressions. Pattern-matching of the existing languages are not strong enough to do what I'd like to do. They can't express pattern-matching against set intuitively. Therefore, I've created Egison.