News for hackers. Stuff that matters.
Re:Algebraic Data Types in Haskell by LeanderK on Monday March 28, 2022 @11:34AM (#30831609)
> I often try to replicate ADTs in Python at $DAYJOB, because they're so damn convenient. I end up with dataclasses which have the same interface, and I disambiguate between them using `isinstance`. It's not perfect but it's useable.

I also do this! It is so painful not to have real ADTs.

There are no comments on this comment yet.