Best way to define algebraic data types in Python?

user1234299 picture user1234299 · Apr 28, 2013 · Viewed 11.2k times · Source

I know that Python is NOT Haskell or Ocaml, but which is the best way to define algebraic data types in Python (2 or 3)?

Answer

user1234299 picture user1234299 · Jun 3, 2013

Macropy provides algebraic data types, pattern matching and more!