Re: [VOTE] ::class feature to resolve namespaced class names to scalars
| From: | jpauli | Date: | Thu, 13 Sep 2012 09:14:34 +0000 |
| Subject: | Re: [VOTE] ::class feature to resolve namespaced class names to scalars | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-62971@lists.php.net to get a copy of this message | ||
On Thu, Sep 13, 2012 at 11:12 AM, Dmitry Stogov <dmitry@zend.com> wrote:
> We already have isset(), empty(), unset() that are a special purpose
> functions handled by compiler.
>
> Thanks. Dmitry.
Yes, if we communicate the right way about our feature not beeing a
true PHP function and taking isset(), empty() et all as examples,
people would understand I think :)
Julien.P
>
>
> 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
>>
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>