Re: my last attempt at sanity with namespaces

From: Date: Fri, 17 Oct 2008 00:55:44 +0000
Subject: Re: my last attempt at sanity with namespaces
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-41184@lists.php.net to get a copy of this message
Why would you do that? I.e. suppose there's library having namespace Zend::Controller::Action::Plugin - why would your name your class Zend::Controller::Action::Plugin and not Steph::Controller::Action::Plugin?
Why do you assume all third-party software is going to be ZF? Or that code is going to be written around third-party software in the first place, rather than some useful lib that doesn't even exist yet might be slotted into an app 3 or 10 years from now?
As it is now, every call to class::method() not accompanied with use should produce E_WARNING.
? That's certainly not how I read it.
That's what is says: If the "use" statement is missing, an E_WARNING should also be thrown to alert the user to the ambiguity
I assume that's only if there is ambiguity, but I'm not in a position to test the patch right now so can't say authoritatively (@Greg: speak!) but Stas - conceptually you aren't a million miles apart in the first place, so if you're finding that in your tests maybe helping figure a way through would be more productive. Greg complains that your version gives no warnings, you complain that Greg's version gives too many... please, guys, can you work together? - Steph

« previous php.internals (#41184) next »