Tuesday, 14 October 2014

Java8: Traits or Mixins? That is the question

A couple of days ago, a discussion came up in one of our mailing list about the Java 8 Interfaces Default Methods. They were named as «mixins», but I corrected them and called «traits without flattening».
After sending the mail, that last sentence kept ringing in my head, so I proposed myself to try to understand why was I calling them like that, and I came up with this post.
Please, leave your comments below and don't forget to check the blog for the part 2!
Lucas.-
P.S.: If you didn't notice the link above, here it is again :) http://blog.10pines.com/2014/10/14/mixins-or-traits/

No comments:

Post a comment