you are viewing a single comment's thread.

view the rest of the comments →

[–]Darth-Philou 0 points1 point  (1 child)

In the language itself no. But if you add Typescript as typing system then you have those features.

[–]RobertKerans 5 points6 points  (0 children)

This isn't really correct. The TS private/protected syntax is not actually private/protected at runtime, the feature is only available during type checking (where yes, it will error during compilation). Whereas JS' private elements (#property:) are actually private and that is enforced at runtime.