Re: Re: RFC: short and inner classes
| From: | Tim Düsterhus | Date: | Thu, 13 Mar 2025 11:01:42 +0000 |
| Subject: | Re: Re: RFC: short and inner classes | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-126729@lists.php.net to get a copy of this message | ||
Hi
Am 2025-03-12 11:10, schrieb Rob Landers:
- Accessing inner classes is done via a new token: ":>" instead of "::".I don't particularly like that. It is “invented syntax” and I don't think that inner classes are sufficiently valuable to dedicate an entire operator to them that could serve a more useful purpose in the future. It also got 4 negative points in the rating back when the namespace separator was decided: https://wiki.php.net/rfc/namespaceseparator Would
\\ (i.e. two backslashes) work? The outer class for inner classes effectively act as a namespace, so it makes sense to me to use syntax that is similar to namespaces.
I'll look into the rest when there is a new implementation, since I assume some details will still be clarified and fixed as part of implementing the proposal.
Best regards
Tim Düsterhus