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

Reply via email to