Re: RFC: short and inner classes
| From: | Bob Weinand | Date: | Thu, 13 Mar 2025 22:36:32 +0000 |
| Subject: | Re: RFC: short and inner classes | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-126744@lists.php.net to get a copy of this message | ||
Hey Ilija,
On 6.3.2025 23:20:37, Ilija Tovilo wrote:
I would also like to echo what has been said about the :: operator, which feels out of place. I understand that \ comes with additional autoloading challenges, namely requiring a fallback autoloading strategy that currently does not conform to PSR-4.Could you please elaborate on why the :: operator feels out of place? \ is a namespace separator. :: is a class scoping separator. You, yourself did decide to use nested :: for property hook scoping, like parent::$x::set() - a property scoped within a class, having methods. The same applies here - it's a class scoped within a class, having methods. Breaking from these patterns seems very surprising to me. Bob