Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
What do you mean by “encapsulation” / “hard private”? (github.com/tc39)
1 point by benatkin on May 11, 2023 | hide | past | favorite | 1 comment


Private fields were such a sad step for JS. Everything should be a first-class entity. Making invisible silent features of JS feels like such a sad outside ask.

I want to carve some space for code securely dealing with other code, but I don't feel like within the VM is the place. Use real isolation boundaries for secure concerns. Denying the ability for the runtime to be observable & clear to itself is a huge limiter against problems we never had, is mis-security.

This was a huge mistake & made the world worse.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: