Stanislav Malyshev schreef:
Hi!

This doesn't work at all

The closest you can do is
<?php
use Foo::Bar as F;
F::myfunction;
?>

That's the right way to go. If you want functions in global space, put them there. If not, then use namespace syntax. BTW, what is so bad in F::myfunction that it makes it absolutely useless?

because it reads like a fucking static method call, truly not an absolute 
reason,
but none the less totally not KISS.


which kind of defeats the purpose of having functions in namespaces at
all, why not just use a class with static methods at this point.

I didn't see a lot of use of having functions in namespaces from the start, but if you could explain what your point is - i.e. why do you want functions that are declared in namespaces and still are in the global space - I could maybe understand the concern better.

for the same reason you would want it with classes?? because you can
do it with classes, no? and that seems acceptable to you, no? then functions
should have the same privilege.

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

Reply via email to