3 ms·
I should have clarified more; you'd use this for switches where you need to always handle all cases. Then if a you add a new value to the enum but forget to upd
by minexew 9y ago
I should have clarified more; you'd use this for switches where you need to always handle all cases.
Then if a you add a new value to the enum but forget to update the switch, you get a compile-time error instead of a buggy program.
- asveikau 9y agoBut the flag affects all switches on enums.