News for hackers. Stuff that matters.
Re:Deno 1.9 by flyingchipmann on Wednesday April 14, 2021 @11:26AM (#26808414)
The thing is enum and union type have different use cases. Union type cannot be used to check against incoming data. It's a lightweight type level feature. There is no way for compiler to identify the unknown data object from the network. Enum is essentially an object in memory which can be used in this case.

There are no comments on this comment yet.