Re: solving the namespace conflict issues between function/static method class constant/ns constant

From: Date: Mon, 22 Sep 2008 20:02:34 +0000
Subject: Re: solving the namespace conflict issues between function/static method class constant/ns constant
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-40608@lists.php.net to get a copy of this message
Having conflicting names of namespaces and classes is a idea bad from the ground, and it should not be allowed. PHP should trigger a fatal error when it sees it. Having two things with the same name is unnatural and unneeded. Syntax with -> is unnatural and unreadable. -> is for working with objects, not for doing such odd things with namespaces. If you will do this change in PHP, I will never use namespaces in PHP, and I will start to look for a new language. Probably not only me. Janusz Lewandowski

« previous php.internals (#40608) next »