Comment by HWR_14

3 years ago

I guess I don't value the "TS transpiles to JS 1-to-1" property very much.

Unions are useful for quite a few things. But I literally was talking about the barebones (and thus simple to write) C/C++ style enums. Where I know it can be one of several primitive values and not have to spend the time creating a class for each possible value.