News for hackers. Stuff that matters.
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."
Re:Algebraic Data Types for C99 by jghn on Thursday May 09, 2024 @10:34AM (#40308644)
More often than not, when I say ADT to someone outside of the FP world, they assume I mean abstract data type.
Re:Algebraic Data Types for C99 by bee_rider on Thursday May 09, 2024 @11:14AM (#40309068)
Or the company that sells the security stickers, for houses.
Re:Algebraic Data Types for C99 by pjmlp on Thursday May 09, 2024 @09:47AM (#40308217)
Yep, people that eventually buy a Modula-2 ADT book, when hunting old stuff, are in for a surprise. :)
Re:Algebraic Data Types for C99 by debo_ on Thursday May 09, 2024 @10:07AM (#40308379)
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?
Re:Algebraic Data Types for C99 by pjmlp on Thursday May 09, 2024 @10:11AM (#40308407)
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.
Re:Algebraic Data Types for C99 by mst on Friday May 10, 2024 @07:25AM (#40317655)
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.

Re:Algebraic Data Types for C99 by keybored on Friday May 10, 2024 @02:35AM (#40315986)
ADT feels like an unfortunately acronym-collision with "algebraic data types."

They were both introduced in the same decade.