3 ms·
But who needs sum types when you have the visitor pattern :troll_face: https://blog.ploeh.dk/2018/06/25/visitor-as-a-sum-type/ https://blog.ploeh.dk/2018/06/25
by Smaug123 5y ago
But who needs sum types when you have the visitor pattern :troll_face:
https://blog.ploeh.dk/2018/06/25/visitor-as-a-sum-type/ https://blog.ploeh.dk/2018/06/25/visitor-as-a-sum-type/
- keithnz 5y agowow.....that is one way to do it.....yes. I would hate to think what a system would look like with many sum types in it