News for hackers. Stuff that matters.
Re:Python's Type Checking Renaissance by dwohnitmok on Wednesday January 27, 2021 @03:48PM (#25933726)
Yes the visitor pattern is a valid encoding of algebraic datatypes. Very heavyweight (imagine if booleans were all encoded with the visitor pattern) but nonetheless valid.

https://blog.ploeh.dk/2018/06/25/visitor-as-a-sum-type/

There are no comments on this comment yet.