--
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.
I think we need Debug.Crash for incomplete code, and Debug.impossible for the cases Max is talking about. Identical behaviour, buy we could consider one unfit for release code.
I also am working on a static analysis tool that would help find out if crash uses could ever actually be called, but it's nowhere near ready.
--
--
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.
I like what Haskell does with typed holes, since they tell you the type of the value you need to fill the hole.
I don't think static analysis will be able to understand the examples in nonempty-list, much less mergeMany.
Actually, the mergeMany example is exactly the kind of thing the analysis does: seeing that a non-empty list never gets passed to the function, and verifying that the empty-branch of the pattern match never gets taken.
If you're curious, there's an extended abstract that I did for a Student Research Competition, but it's far from complete, and the code is still a major WIP.
--