Private Properties Syntax · Issue #6 · tc39/proposal-class-fields (original) (raw)
This repository was archived by the owner on Jan 25, 2022. It is now read-only.
This repository was archived by the owner on Jan 25, 2022. It is now read-only.
Description
I have opinion against syntax for private properties and methods in this proposal.
Many languages have keywords private
, protected
, public
. I suggest to add that keywords against #
syntax. It's looks like you guys reinventing the wheel, but we have that syntax many years in languages like Java or C++ or PHP etc.
And making JavaScript with "something" new is harm to JavaScript. I think Javascript need to be more closer to other languages like Java or C# or TypeScript (where we have private/protected/public modificators). And don't create your "own" things.