Re: Re: New Feature: Fully qualified class name resolution as scalar with class keyword
| From: | Stas Malyshev | Date: | Tue, 17 Apr 2012 16:58:55 +0000 |
| Subject: | Re: Re: New Feature: Fully qualified class name resolution as scalar with class keyword | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-60086@lists.php.net to get a copy of this message | ||
Hi!
> May I suggest using foo::__CLASS__ instead of foo::class ? It's longer, but
> closer to what already exists for this semantic (class name as string),
> don't you think ?
I like this. __CLASS__ is already being used as class name, and little
chance of colliding with some code since you're not supposed to be using
__ prefix in your names.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227