LWN.net Logo

PHP 5.4.0 released

PHP 5.4.0 released

Posted Mar 2, 2012 16:20 UTC (Fri) by artem (subscriber, #51262)
In reply to: PHP 5.4.0 released by angdraug
Parent article: PHP 5.4.0 released

I just checked some of the languages that wikipedia article claims to support 'Mixin' concept:

Scala - uses 'trait' to denote classes that you can 'mix in' into other classes

Ruby - does not use the word 'mixin'

Groovy - uses @Mixin annotation for classes that have other classes 'mixed in'

Vala - does not use the word 'mixin', just allows to define methods in interfaces

So 'Mixin' is just a vague concept, and you have to be precise when defining a language. And it just sounds weird - trait is so much better IMHO.


(Log in to post comments)

PHP 5.4.0 released

Posted Mar 2, 2012 19:03 UTC (Fri) by rfunk (subscriber, #4054) [Link]

Ruby doesn't use the word "mixin" itself, but the Ruby community does.

PHP 5.4.0 released

Posted Mar 2, 2012 21:31 UTC (Fri) by artem (subscriber, #51262) [Link]

So, I see it as PHP agreeing with Scala and disagreeing with Ruby in their choice of the name. They did not invent their own name.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds