-
Notifications
You must be signed in to change notification settings - Fork 3
Help me understand why this proposal exists #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
https://github.com/zenparsing/js-classes-1.1/blob/master/docs/motivation.md
https://github.com/zenparsing/js-classes-1.1#goals
Not sure what this question is asking? Is it about static initializers?
Also, the semantics of |
CoffeeScript made breaking changes for ES2015. Any reason TypeScript should not be obligated to? After all, is this not what |
CoffeeScript is not JavaScript, especially the syntax part, though it follow most JavaScript semantics. So it's ok CoffeeScript make any breaking changes to JavaScript, they already did. TypeScript is the superset of JavaScript, which have to keep all JavaScript syntax and semantics, and add compile-time type system. This is the design goal of TypeScript. If TypeScript made any incompatibility (breaking changes) to JavaScript, they need to fix it. For example, old internal modules of TypeScript has been changed to namespaces even it's not a real incompatibility but only a concept confusion. So if we use private keyword in native JS, they eventually have to fix it (change to other keyword, or just drop their private). This will be very painful for the whole TypeScript community.
|
At the end of the day ES2015 could have explicitly refused to break CoffeeScript but did anyway. I think this should be precedent for anything that compiles to JavaScript, not the other way around. |
Sorry for the horrible title, I couldn't think of a good summary to these questions:
The text was updated successfully, but these errors were encountered: