Re: [VOTE] ::class feature to resolve namespaced class names to scalars
| From: | Lars Strojny | Date: | Thu, 13 Sep 2012 08:28:17 +0000 |
| Subject: | Re: [VOTE] ::class feature to resolve namespaced class names to scalars | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-62966@lists.php.net to get a copy of this message | ||
Hi Dmitry,
Am 13.09.2012 um 10:17 schrieb Dmitry Stogov <dmitry@zend.com>:
[...]
> I think the syntax is wired.
> Instead of classname::class I would prefer something like class(classname).
Wouldn’t this look too much like a function with all the implications that might cause like users
expecting class($variable) to work or even class(otherfunc())?
cu,
Lars