Closed
Description
We should have a @private
annotation, since it's unlikely we'll ever have the private
keyword (#33383), just like most languages do.
It wouldn't really make it private in the _
sense, but the IDE would warn us if we use it outside of the class. That's what it does with @protected
.
That would be very helpful because adding _
is not very clean-code, and we have a lot of code which remains public for that reason.
That's also very easy to implement.
There's no reason for us to have @protected
and not @private
, since _
is not a good solution, but just a compromise for performance reasons as explained in #33383.