Hello,
If we keep the idea of using reflection aside, I still have a reason
to consider readonly flag for private properties. There are two main
uses I consider of readonly properties: prevention of property
modification from the public scope and the securing the property from
losing an important
Hey there
On 03.12.22 23:55, Karoly Negyesi wrote:
They refuse to compromise even on documentation issues. I am totally
helpless. Not sure what could be done?
When people design their systems and use final, private or readonly,
they have a reason for that. They have a plan on how their librar
Hello,
You can always patch PHP.
In what context do you use reflection ?
It's quite easy to override the behavior of readonly. Do you need
readonly behavior
?
Le sam. 3 déc. 2022 à 23:56, Karoly Negyesi a écrit :
> They refuse to compromise even on documentation issues. I am totally
> help
They refuse to compromise even on documentation issues. I am totally
helpless. Not sure what could be done?
On Sat, Dec 3, 2022 at 2:48 PM Marco Pivetta wrote:
> Talk to the designers then: bringing your own political issues up to the
> programming language/tooling only makes it worse long-term,
Talk to the designers then: bringing your own political issues up to the
programming language/tooling only makes it worse long-term, for everyone 😛
On Sat, 3 Dec 2022, 23:45 Karoly Negyesi, wrote:
> I do not have the luxury of designing my own system. I am forced to use
> upstream. I can't help
I do not have the luxury of designing my own system. I am forced to use
upstream. I can't help it and given the history of private usage and the
refusal on relaxing them I do not see this improving with the readonly. At
all.
On Sat, Dec 3, 2022 at 2:42 PM Marco Pivetta wrote:
> Terrible idea: re
Terrible idea: reflection is mostly introspection tooling, and doesn't
really bend the rules of the type system, other than crossing scope (it
"sees" more).
Please consider designing your system to consider the constraints of
`readonly` properties, or design the constraints to fit your system inst
Hello,
If push comes to shove, private properties can be changed with reflection.
Readonly properties can't.
Please add a readonly toggle to reflection.
Thanks
Karoly Negyesi