Re: horizontal reuse: traits vs. grafts

From: 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/



Thread (21 messages)

« previous php.internals (#47638) next »