On 02/09/2024 19:42, Christoph M. Becker wrote:
On 02.09.2024 at 16:51, Mike Schinkel wrote:

Generally I am one who welcomes new feature ideas, but I fear that string 
literals as object properties would break a valuable assumption that all 
properties must be a valid identifier. Without that assumption I fear many 
things that would become more complex.

Is that so?  See <https://3v4l.org/bZTFi>.

And it works with methods too, you just can't define them but can catch with __call:

<?php

class AAA {
    public function __call(string $name, array $arguments)
    {
        var_dump($name);
    }
}

[new AAA, '123AnyChars%%!@#']();

Reply via email to