Re: Traits and Properties

From: Date: Sun, 09 Jan 2011 16:23:40 +0000
Subject: Re: Traits and Properties
References: 1 2 3 4 5 6 7 8 9 10 11 12 13  Groups: php.internals 
Request: Send a blank email to internals+get-51251@lists.php.net to get a copy of this message
On 06 Jan 2011, at 15:33, Johannes Schlüter wrote: > On Thu, 2011-01-06 at 14:38 +0100, Stefan Marr wrote: >> >> On of those things is that you actually use ReflectionClass to reflect >> on a trait. >> That is really an implementation detail, and should be changed to not >> confuse anyone on a conceptional level. We should not expose that kind >> of engine/implementation detail. > > This is the same with interfaces. What does class_exists('some_trait') > do? - I assume that returns true too. It does return false for interfaces, that should be consistent and return false for traits, too. Best regards Stefan -- Stefan Marr Software Languages Lab Vrije Universiteit Brussel Pleinlaan 2 / B-1050 Brussels / Belgium http://soft.vub.ac.be/~smarr Phone: +32 2 629 2974 Fax: +32 2 629 3525

« previous php.internals (#51251) next »