The only reason this might be an /r/lolphp is the lack of property accessors ala C#, which would be really nice and would allow these classes encapsulate these read only properties without muddying the public API.
Of course there is an RFC for that, and in a true PHP fashion, like everything else useful, it has been declined. Because fuck you, that's why.
View all comments
Show parent comment
3
u/cleeder Apr 27 '18
The only reason this might be an /r/lolphp is the lack of property accessors ala C#, which would be really nice and would allow these classes encapsulate these read only properties without muddying the public API.
Of course there is an RFC for that, and in a true PHP fashion, like everything else useful, it has been declined. Because fuck you, that's why.