Skip to content

Create @private, just like we have @protected #41089

Closed
@marcglasberg

Description

@marcglasberg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions