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

Reply via email to