> Le 31 août 2022 à 23:27, Tim Düsterhus <t...@bastelstu.be> a écrit :
> I've read through that explanation three times, but don't understand why the
> C#-style syntax would require to differentiate between `set` and `raw`. Isn't
> the difference between "visibility only" and "accessor" not clear [1] by
> having either '{' or ';' after the 'set'?
>
> [1] Read: Clear to the engine, not talking about the human reader here.
Even if they manage to make the difference clear for the engine without
resorting to “raw”, I think that it is important to have a syntactical marker
for the sake of humans. Otherwise, someone would want to incrementally improve
their class property, and at some unkwown point in time, it becomes
unexpectedly unusable for references and array mutations.
—Claude
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php