Hacker News new | past | comments | ask | show | jobs | submit login

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.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: