I just got to know traits ("traits" in Smalltalk, "roles" in Perl). I would like to experiment with them quickly, in the language I am familiar with. Are there libraries or extensions in Java that support traits?
I heard that AspectJ and Qi4J support mixins, but I also read that mixins are different from features. Can I also use one of these libraries for tags?
Or what about Scala, which is fully compatible with Java, right? Does it support features?
Any other suggestions?
source share