Perhaps get_class_fqn(string:ClassName)  ?

Do you propose a function? Because I don't see how it can work as
function - namespace resolution is compile-time.

I personally think we should keep resolutions as much to compile time as possible.

Your suggestion implies that we now have either a function and a new keyword, or two new keywords: get_class_fqn, and ClassName.

I like that ::class is basically 7 chars for a FQ name resolution at compile time, after all, point of this is that we can leverage namespacing in scalars/string when referring to classes as strings.

-ralph

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

Reply via email to