Re: Re: towards a 5.3 release

From: Date: Mon, 08 Sep 2008 18:24:31 +0000
Subject: Re: Re: towards a 5.3 release
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-40362@lists.php.net to get a copy of this message
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.

« previous php.internals (#40362) next »