News for hackers. Stuff that matters.
Re:Safer Enums in Go by ravi-delia on Saturday May 14, 2022 @11:41AM (#31379049)
I don't think anyone ever struggled with sum types (or at least, I hope not), they associated them with things like Haskell's monads, which are less commonly accessible (though they're undeserving of their reputation too). The hate was a little silly, but algebraic data types are clearly just an extension of the concepts everyone already knew.
Re:Safer Enums in Go by morelisp on Saturday May 14, 2022 @12:48PM (#31379796)
> I don't think anyone ever struggled with sum types... algebraic data types are clearly just an extension of the concepts everyone already knew.

You're definitely in a bubble.