Traits vs. Aspects in Scala 103 Posted by Dean Wampler Sun, 28 Sep 2008 03:33:00 GMT Scala traits provide a mixin composition mechanism that has been missing in Java. Roughly speaking, you can think of traits as analogous to Java interfaces, but with implementations. Aspects, e.g., those written in AspectJ, are another mechanism for mixin composition in Java. How do aspects and traits compare? Let