On 13/09/2012, at 8:28 PM, Lars Strojny <l...@strojny.net> wrote:

> Hi Dmitry,
> 
> Am 13.09.2012 um 10:17 schrieb Dmitry Stogov <dmi...@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

I would expect $variable::class to work (like late static bindings). However, I 
do agree that class(ClassName) just looks off and makes it look like you can 
pass class names to functions.
---
Simon Welsh
Admin of http://simon.geek.nz/


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to