Re: [VOTE] ::class feature to resolve namespaced class names to scalars
| From: | Dmitry Stogov | Date: | Thu, 13 Sep 2012 09:12:17 +0000 |
| Subject: | Re: [VOTE] ::class feature to resolve namespaced class names to scalars | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-62970@lists.php.net to get a copy of this message | ||
We already have isset(), empty(), unset() that are a special purpose functions handled by compiler.
Thanks. Dmitry.
On 09/13/2012 12:28 PM, Lars Strojny wrote:
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