2 ms·
Unfortunately I feel that this type of example expresses what not to do with type systems -- favoring composition over inheritance goes a long way to not findin
by oceanswave 9y ago
Unfortunately I feel that this type of example expresses what not to do with type systems -- favoring composition over inheritance goes a long way to not finding yourself in a brittle type hierarchy and especially in a JavaScript environment where composition is so easily used (and with typescript, still type checked)