Is Julia's way of OOP superior to C++/Python? Why Julia doesn't use class-based OOP?

Traits can do this, and a whole bunch of other things, so they are more general than “interfaces” as they allow a lot of general computations to happen in type space.

You would have to pry traits from my cold, dead fingers. :wink:

5 Likes