There's precedence in both directions, case comes from Haskell. So changing it doesn't necessarily mean we'll match everyone else, pardon the pun.
Being easier for non native English speakers seems pretty subjective, some people might find case more intuitive as non native speakers. To me, case is better at capturing the idea of programming by cases, that it's a branching construct, not just a pattern matcher. Both have pros and cons, and are roughly equal in my mind, but changing it would break literally all Elm code ever, so I think the status quo wins in this case. On Oct 20, 2016 7:56 AM, "OvermindDL1" <overmind...@gmail.com> wrote: On Thursday, October 20, 2016 at 8:46:42 AM UTC-6, Peter Damoc wrote: > On Thu, Oct 20, 2016 at 5:06 PM, Robin Heggelund Hansen < > skinn...@gmail.com> wrote: > >> The proposal, as the title of the post suggests, is to rename the >> "case..of" expression to "match..with". >> > > One added benefit that I'm seeing is that today, if I would have to > describe "case...of", I would use the words "pattern matching". :) > > I wonder if this has been discussed before. I did a quick search but > nothing jumped out as relevant. > > > case..of to match..with renaming could be handled by elm-format. > > in theory, yes, it could be handled by a tool like elm-format but in > practice, in order for it to be effective, it should be handled by > something that is part of the elm-platform. > this kind of a mechanical replacement would be OK if it would be handled > right away and in an official manner. > requiring installing extra tools that come with alpha warnings might be > scary. > If this were done (plenty of other precedence, OCaml uses `match ... with` too), there could be a deprecation period where both are supported and `case ... of` generated deprecation warnings... -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.