Re: Call it: allow reserved words in a class or not?
| From: | Johannes Schlüter | Date: | Fri, 07 Nov 2008 07:27:51 +0000 |
| Subject: | Re: Call it: allow reserved words in a class or not? | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-41749@lists.php.net to get a copy of this message | ||
On Thu, 2008-11-06 at 22:19 -0600, Josh Thompson wrote:
> I don't understand why in the namespaced example no one seems to have a
> problem with new A() meaning new \foo\bar\A(), but we can't use the *
> wildcard to do the same thing?
Since we don't reliable know all possible classes, think about
_-autoloading classes, which means we'd have to do more work during
execution, which can be a slowdown.
johannes