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

Article makes no real good arguments about not using the private keyword. It's more descriptive and carries knowledge from other languages compared to putting a hashtag in front of a variable name.


I agree. Just because JS has its way of doing it does not mean you need to stick to that. I mean, TS adds a bunch of new keywords to the language that JS lacks. Why not simply stick to those intuitive keywords rather than this weird variable naming nonsense that JS has to use because it doesn't have access modifiers of any kind?




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

Search: