Re:Algebraic Data Types for C99
by duped on Thursday May 09, 2024 @11:04AM
(#40308956)
You're confusing semantics for implementation. The point of union and discriminated union types (not what C calls union) is to enable compiler checked pattern matching, which tagged enums in C plus a switch statement do not get you.
[ Parent
| on HN ]
There are no comments on this comment yet.