No inheritance, rather composition.
That’s a good fit for Protocol.
Pattern matching? Multi clause functions should do the job, maybe.
No inheritance, rather composition.
That’s a good fit for Protocol.
Pattern matching? Multi clause functions should do the job, maybe.