4 ms·
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
by avasthe 6y ago
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?
- cellularmitosis 6y agoNot in vanilla JS. If you use the flavor of JS accepted by google’s closure compiler, then yes.
- avasthe 6y agoIf 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.