Re: Asymmetric visibility is a BC break

From: Date: Wed, 09 Oct 2024 16:08:25 +0000
Subject: Re: Asymmetric visibility is a BC break
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-125774@lists.php.net to get a copy of this message
I have to admit I understood nothing from your email, but I got curious about some of your words. > A readonly property is two functionalities in one: write-once and private set. What do you mean it is private set? Readonly only means the property is writable once. It does not affect its visibility. > While the syntax is new, it allows one to alter the old concept of public by changing set visibility. Isn't that the whole point of asymmetric visibility? If you use the new syntax, you can change what public means. Code that doesn't use it will function as it did before. What is the BC break then?

« previous php.internals (#125774) next »