Re: Re: import/use last call

From: Date: Mon, 22 Oct 2007 23:20:43 +0000
Subject: Re: Re: import/use last call
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-32919@lists.php.net to get a copy of this message
Hello Gregory, even if you can solve it easily your patch will not solve the fact that we won't have a token for that keyword the, or am i missing something? marcus Tuesday, October 23, 2007, 1:18:52 AM, you wrote: > Stanislav Malyshev wrote: >> Hi all! >> >> Since many packages (wordpress, propel, horde, phing, etc.) use "import" >> as either class or function name, and we couldn't find a good solution >> to make it work with import keyword without going into all kinds of >> troublesome hacks, so we are thinking about replacing 'import' keyword >> with 'use' keyword, which is already reserved. >> >> If you know any reason why this may be a problem - please speak now (or >> forever hold your peace :). Please do not answer this email with >> proposals to replace 'namespace' keyword with 'package', etc. - it will >> be offtopic. For this topic please let's discuss only using keyword >> 'use' instead of 'import'. > Hold off for a bit - I may have a simple solution that solves the > problem for class names, method names and functions, have to code the > patch tonight first to prove it works. > Greg Best regards, Marcus

« previous php.internals (#32919) next »