Re: [RFC] PHP Namespace Policy
| From: | Max Semenik | Date: | Tue, 28 Apr 2020 11:52:33 +0000 |
| Subject: | Re: [RFC] PHP Namespace Policy | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-109872@lists.php.net to get a copy of this message | ||
On Tue, Apr 28, 2020 at 11:45 AM Rowan Tommins <rowan.collins@gmail.com>
wrote:
> One prefix doesn't make a trend. "PhpToken" is a different case - it's a
> token of PHP source code, so the prefix isn't anything to do with avoiding
> name collisions, it's a natural clarification.
>
There's also SPL, with classes like SplEnum, SplBool, etc.
> To be honest, I'd be perfectly happy with the attributes RFC using the
> class name "Attribute", just as we use "Iterator", "Closure",
> "Exception",
> etc, etc. At which point the whole thing's a non-issue.
>
I hope it's not too late to change this before 8.0 is branched?
--
Best regards,
Max Semenik