News for hackers. Stuff that matters.
Re:Algebraic Data Types in Haskell by rfw300 on Monday March 28, 2022 @11:53AM (#30831830)
Have you seen Python 3.10's pattern matching? https://peps.python.org/pep-0636/

While it doesn't bring you Haskell ADTs, it sounds like it could make your `isinstance`-style code a lot cleaner.

Re:Algebraic Data Types in Haskell by cosmic_quanta on Monday March 28, 2022 @01:06PM (#30832781)
That's great! Unfortunately, at the pace our stack is moving, I don't think I'll be using Python 3.10 for some time