|
|
|
|
|
by debugnik
312 days ago
|
|
> so a number of pattern can all be called "discriminated unions" Assuming they've got discriminators and some sense of type union, sure. > I just showed a data model with a discriminator (.Type) Which won't let you recover the additional fields from a pointer because you can't downcast, so that's insufficient for a union. AFAIK you need to combine this with interfaces, which I already know how to do. > These are largely irrelevant in a discussion about type embedding. Don't tell me, you brought it up. |
|