Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Objects with instance variables don't automatically mean the state is shared.

Agree, but JS's syntax and constructs are almost begging the user to encapsulate their state in classes and instances and share those instances between function calls, rather than passing the data itself around. This is very visible if you browse the various JS APIs as well.



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

Search: