Re: import/use last call
| From: | Gregory Beaver | Date: | Mon, 22 Oct 2007 23:18:52 +0000 |
| Subject: | Re: import/use last call | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32918@lists.php.net to get a copy of this message | ||
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