Blog16.9K views3,716 votes0 replies1,349 following
Elm's update Function: Letting the Compiler Catch the State Transition You Forgot
Elm's update function must handle every message constructor or the build fails. Here's how the exhaustiveness check works, where wildcard branches break it, and how to verify it in your own project.