Hacker News new | ask | show | jobs
by ww520 2406 days ago
C has Union, while not exactly the same as adt, the essential idea is the same.
1 comments

A C union is a sum, but not much of a type, since it's never checked (not even at runtime like Python) and using it wrong in your code will silently corrupt your program.