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

Tangentially related; is there no lint option (similar to use strict) in JS yet to ensure no methods / functions are dynamically called and thus allow effective dead code elimination?


Not in vanilla JS. If you use the flavor of JS accepted by google’s closure compiler, then yes.


If anything, it proves how ineffective standards committees are. Similar to the standard library proposal which seems to be not yet implemented.

Still better than C++ standard people who try to cram infinite complexity into 100 layers of templates every three years for sake of adding a feature as library instead of language feature, with utter ignorance towards debug build performance, compile times and error messages. I have lost respect towards them since I read a C++ performance report and didn't see the mention of inherent STL inefficiencies.




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

Search: