Re: namespaces and alpha3

From: Date: Fri, 10 Oct 2008 17:02:25 +0000
Subject: Re: namespaces and alpha3
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-40929@lists.php.net to get a copy of this message
Hi!
3) Stas proposal
I have two proposals, actually. 1. Leave functions (and constant) alone, i.e. namespace would ignore that. 1.1 Option: if you define function inside namespace, compiler could give an error (I don't like this option, but I mention it for the sake of completeness). 2. Leave functions/constants as they are now, and add the following syntax: Class::Name->method() for calling static methods (and referring to class constants), so that there would be a way to disambiguate calls in (rare, IMHO) situations where ambiguity may arise. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#40929) next »