I often define methods on MyFoo class in order to ensure it conforms to the AbstractFoo interface. A formal interface makes it easy to ensure I’ve done it right. It’s possible to do this with dispatch too, but Julia doesn’t provide a standard way (yet?).
1 Like