Hall of Famer Posted August 30, 2012 Share Posted August 30, 2012 Well we know that since version 5 was released, PHP has been borrowing concepts from Java and incorporating them into itself. Good examples are Static Property/Method, Abstract Class/Method, Final Class/Method, Interface, and then Namespace in PHP 5.3.x. I was wondering where Trait came from though, since apparently it is not available in Java. Is it a new concept PHP came out with on its own? Just curious. Link to comment https://forums.phpfreaks.com/topic/267800-where-did-php-borrow-the-idea-of-trait-from/ Share on other sites More sharing options...
salathe Posted August 30, 2012 Share Posted August 30, 2012 https://wiki.php.net/rfc/horizontalreuse#links_and_literature Link to comment https://forums.phpfreaks.com/topic/267800-where-did-php-borrow-the-idea-of-trait-from/#findComment-1373807 Share on other sites More sharing options...
Hall of Famer Posted August 30, 2012 Author Share Posted August 30, 2012 I see, thanks for the reference. Link to comment https://forums.phpfreaks.com/topic/267800-where-did-php-borrow-the-idea-of-trait-from/#findComment-1373808 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.