Re: [RFC] Importing namespaced functions
| From: | Igor Wiedler | Date: | Tue, 23 Jul 2013 20:28:20 +0000 |
| Subject: | Re: [RFC] Importing namespaced functions | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-68287@lists.php.net to get a copy of this message | ||
Hi,
Based on Sebastian's feedback I have updated the RFC and the patch to include a
use
const sequence that works just like use function, but for namespaced constants.
Example usage:
namespace foo\bar {
const baz = 42;
}
namespace {
use const foo\bar\baz;
var_dump(baz);
}
I also fixed some other issues that the original patch had in the process (see commit history).
Please keep the feedback coming.
Thanks,
Igor