Hacker News new | ask | show | jobs
by mcguire 3218 days ago
I'm thinking you just violated the 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).

1 comments

I'll have to look at that, thanks.