4 ms·
I never understood why Java didn't go to proper sum types when it introduced enums. They all have to have the same shape, just distinguished by their method im
by sixbrx 13y ago
I never understood why Java didn't go to proper sum types when it introduced enums. They all have to have the same shape, just distinguished by their method implementations, same as always in OO. What kind mechanism for describing alternatives is that?