Difference between @Delegate, @Mixin and Traits in Groovy?
I agree, they all seem to allow reusing multiple “classes” of behaviour. There are differences, though, and understanding these will probably aid your decision. Before providing a brief summary/highlight of each feature and examples of suitable usage, let’s just summarize on the conclusion of each. Conclusion / typical usage: @Delegate: Used to add all the … Read more