3 ms·
One thing that a match method can provide is a compile-time check that you haven't forgotten to handle any cases of your variant.
by hoytech 9y ago
One thing that a match method can provide is a compile-time check that you haven't forgotten to handle any cases of your variant.
- snowAbstraction 9y agoThe Clang C++ compiler will warn if the switch is not exhaustive.
- lsh123 9y agogcc will warn too