3 ms·
> This cannot be modeled effectively in a static system. You can use a sum type, but that's just a greenspunned ad hoc dynamic type. This can easily be modeled
by wtetzner 2y ago
> This cannot be modeled effectively in a static system. You can use a sum type, but that's just a greenspunned ad hoc dynamic type.
This can easily be modeled in a static type system. All you really need is subtyping.