Skip to content

“match on your enum and then you can have a branch for each…” — The Pragmatic Engineer at 11:01

“match on your enum and then you can have a branch for each possibility of my B. And if you are missing one, that's a compiler. Of course, you can have a catch all case if you want to, but most of the time you would just list all the cases. And then in the future, when you're at a new variant, the compiler”

0:00 1:04:59