|
|
|
|
|
by oefrha
314 days ago
|
|
Using struct embedding for pure data to implement discriminated unions is fine, better than MarshalJSON() that is lost on a type definition. Using it to save typing, or going crazy with it (I consider embedding two things going crazy) is bad. |
|
Introduction of proper discriminated unions would be great.