3 ms·
I'm thinking you just violated the Liskov substitution principle (https://en.wikipedia.org/wiki/Liskov_substitution_principle https://en.wikipedia.org/wiki/Lisk
by mcguire 9y ago
I'm thinking you just violated the Liskov substitution principle (https://en.wikipedia.org/wiki/Liskov_substitution_principle https://en.wikipedia.org/wiki/Liskov_substitution_principle).
A sum type is the same thing as a tagged union, a variant record, or a discriminated union (https://en.wikipedia.org/wiki/Tagged_union https://en.wikipedia.org/wiki/Tagged_union).
- vram22 9y agoI'll have to look at that, thanks.