News for hackers. Stuff that matters.
Re:Codata in action, or how to connect FP and OOP by codr7 on Monday August 10, 2020 @10:01AM (#24109310)
It must have enough methods to get the behavior you want, that doesn't always mean all subtypes.

Assuming you're running a version of Java that supports default implementations, which may often be used to avoid breaking the interface.

Sum types are a different story, as you would have to dive into existing code.

There are no comments on this comment yet.