Re: horizontal reuse: traits vs. grafts
| From: | Sebastian Bergmann | Date: | Fri, 26 Mar 2010 08:55:54 +0000 |
| Subject: | Re: horizontal reuse: traits vs. grafts | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-47638@lists.php.net to get a copy of this message | ||
Stefan Marr wrote:
> Well, my personal (I admit very academic) position is:
> - Traits are not classes
> - Traits are not interfaces
> - Traits are not types
> - Traits cannot be instantiated
>
> Thus, there is no meaning of a is_a and instanceof
+1
--
Sebastian Bergmann Co-Founder and Principal Consultant
http://sebastian-bergmann.de/
http://thePHP.cc/