3 ms·
Swift also has sum types called "enums". I thought it was overly cute, the same way it has errors (not exceptions) but uses the C++ exception syntax for them. S
by astrange 6y ago
Swift also has sum types called "enums". I thought it was overly cute, the same way it has errors (not exceptions) but uses the C++ exception syntax for them. Seems to work though.