News for hackers. Stuff that matters.
Re:Algebraic Data Types in Haskell by anoctopus on Monday March 28, 2022 @12:15PM (#30832097)
Completely agree, although I'm often put off by the comparatively worse ergonomics for the python emulation, to the point that I sometimes miss obvious-in-retrospect places I should be modeling the domain with more variants, even in code I'm already using unions of dataclasses. The ergonomics and clarity of `data Foo = Foo Int | Bar` are incredible.

There are no comments on this comment yet.