Re:Approximating sum types in Python with Pydantic
by masklinn on Thursday August 15, 2024 @08:10AM
(#41255009)
As a matter of fact this would not be a "major undertaking" in Python, unless your definition of the term is majorly loose:
Although in reality you'd likely model Committer as a product of a status and name, and adjudicate as a map of status to reaction, unless there are other strong reasons to make Committer a sum.
[ Parent
| on HN ]
There are no comments on this comment yet.