I'll respond in more depth when not on my phone. But an initial point for thought? What happens when there are arguments to the constructors in a multiple match?
Sorry about the lack of a question at the end :) - I copied the text from elm-proposals where it was implicit that it was a proposal. So, what do you think about adding this to Elm?
--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
OCaml probably was the first language to have this. Guarded branches is also a sometimes useful feature that exists in Haskell and probably SML and OCaml.
They can make things kind of messy, but when used carefully, they are nice. All of these make sense to me, but of all the ways things could be improved, this is not a major priority. It is available in syntax, and it does not clash with anything. So it can be added at any time. The only question is "is this more urgent than all the other things?"
I'm in the process of learning a lot more about Erlang, so I would like to get more perspective on what exactly is needed from that perspective before I start committing to these sorts of things.