Re:Algebraic Data Types for C99
by debo_ on Thursday May 09, 2024 @09:45AM
(#40308193)
ADT feels like an unfortunately acronym-collision with "Abstract data types."
[ Parent
| on HN ]
More often than not, when I say ADT to someone outside of the FP world, they assume I mean abstract data type.
Or the company that sells the security stickers, for houses.
Yep, people that eventually buy a Modula-2 ADT book, when hunting old stuff, are in for a surprise. :)
It's a term that is commonly used in computer science education to refer to any data type independent of its concrete implementation (so, basically, its interface.) I don't think it's just restricted to Modula-2?
Indeed, however CLU and Modula-2 were the ones used mostly for practical teaching purposes, until ML became widespread enough for ADT to gain yet another meaning.
I just realised something terrible.
This code is ADTs for C.
At some point somebody's going to call it CADT and jwz will explode.