News for hackers. Stuff that matters.
Re:JOII: Simple object inheritance for JavaScript. by lucian1900 on Tuesday January 21, 2014 @02:49PM (#7097782)
I don't think those are actually traits. They look more like mixins.

If they were traits, there wouldn't be any point to also having interfaces, since traits are a strict superset of them.

Re:JOII: Simple object inheritance for JavaScript. by haroldiedema on Tuesday January 21, 2014 @03:16PM (#7098006)
Built based on this: http://php.net/trait

Depending on the language, I think they're pretty much the same thing; implementation of (read: copy) functionality from a stateless object.