4 ms·
As long as the number of mixed types is finite, unions/variants give you the same ease of use with static guarantees.
by andreasgonewild 9y ago
As long as the number of mixed types is finite, unions/variants give you the same ease of use with static guarantees.