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

While 'const' is cute, it's not a standard feature:

"The current implementation of const is a Mozilla-specific extension and is not part of ECMAScript 5."

https://developer.mozilla.org/en-US/docs/JavaScript/Referenc...




[deleted]


"`const` is not part of the EMCA spec"

It's called ECMA.

"V8, the engine powering Node.js, does offer support for it."

There's no guarantee that const will be used in the same way in the future. I bring this up because of the bevy of articles that discuss the express framework (remember when it shifted major version number?) and other frameworks that have seen backwards-incompatible changes.




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

Search: