3 ms·
There are no traits in Julia by default, that's true. But since types are first class citizens in Julia, traits can be implemented within the language. There is
by dandanua 1y ago
There are no traits in Julia by default, that's true. But since types are first class citizens in Julia, traits can be implemented within the language. There is a package SimpleTraits.jl that implements Holy's trait trick, see also this tutorial https://ahsmart.com/pub/holy-traits-design-patterns-and-best-practice-book/ https://ahsmart.com/pub/holy-traits-design-patterns-and-best...
An ability to work with types within the language is already a win for me.