News for hackers. Stuff that matters.
Re:Algebraic Data Types: Things I wish someone had explained... by ww520 on Tuesday November 19, 2019 @12:45PM (#21575789)
C has Union, while not exactly the same as adt, the essential idea is the same.
Re:Algebraic Data Types: Things I wish someone had explained... by gowld on Tuesday November 19, 2019 @01:58PM (#21576790)
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.