Re: How bad would it be to say/enforce that namespacing can only apply to classes and not normal functions?

From: Date: Thu, 26 Jun 2008 09:16:53 +0000
Subject: Re: How bad would it be to say/enforce that namespacing can only apply to classes and not normal functions?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-38635@lists.php.net to get a copy of this message
Richard Quadling wrote:
How bad would it be to say that namespacing can only apply to classes and not normal functions?
i don't see namespacing as an OO only feature, IMHO it is a perfectly valid and useful thing for pure procedural code, too not having namespacing for procedural functions would leave the old ugly concept of bundling functions as static methods within dummy wrapper classes as only option for procedural name space emulation ... which AFAIR was one of the things we wanted to get rid of way back when the whole namespace idea first materialized? -- Hartmut Holzgraefe, MySQL Regional Support Manager EMEA Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten Amtsgericht Muenchen: HRB161028 Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer Vorsitzender des Aufsichtsrates: Martin Haering

« previous php.internals (#38635) next »