Re: Deprecating "global" + $GLOBALS, making $_REQUEST, $_GET, $_POST read-only
| From: | Giorgio Sironi | Date: | Thu, 09 Dec 2010 19:05:54 +0000 |
| Subject: | Re: Deprecating "global" + $GLOBALS, making $_REQUEST, $_GET, $_POST read-only | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-50974@lists.php.net to get a copy of this message | ||
On Thu, Dec 9, 2010 at 12:21 PM, Ferenc Kovacs <info@tyrael.hu> wrote:
> And what about global constants? They are also screwing up the Dependency
> Injection, and the static functions/properties, and the singletons also.
> Should we ban those?
You got right to the point. It's no use removing this support if the
same global state can easily be achieved in other ways, like
singletons and statics, and break thousands of applications: then you
would simply choose a different programming language.
--
Giorgio Sironi
Piccolo Principe & Web Engineer
http://giorgiosironi.blogspot.com
http://twitter.com/giorgiosironi