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

I like CoffeeScript and will continue to use it where appropriate.

But I do wonder why we're stuck with all the cruft to let ECMAScript be backwards compatible. Couldn't we just one time introduce a few breaking changes to clean up the mistakes in the language's design?

And if you're really opposed to that, how about the same strict versus transitional semantics we use for HTML? I'd be happy to be writing code in a clean strict subset of JavaScript.



We already have a strict subset of JavaScript, “strict mode” – see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe.... You activate it by putting the code `"use strict";` at the top of a script or a function.




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

Search: