Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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...



As 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


Yes, pattern matching is about as fundamental to Haskell as assignment is to C.


Hello! 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.


Pattern matching is a very popular feature in most modern FPs I'm familiar with.

Elixir (http://elixir-lang.org/) has lovely built-in pattern matching syntax. Ditto for Scala.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: