Skip to content
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

CS2 Discussion: Question: 1to2? #4944

Closed
coffeescriptbot opened this issue Feb 19, 2018 · 2 comments
Closed

CS2 Discussion: Question: 1to2? #4944

coffeescriptbot opened this issue Feb 19, 2018 · 2 comments
Labels

Comments

@coffeescriptbot
Copy link
Collaborator

From @za-creature on 2016-10-13 17:37

Hi guys,

While I've browsed your discussions a bit, I can't say that I've read everything so apologies if this has been brought up before.

Did you consider a 1to2 code conversion tool, a-la python's 2to3? Having one would allow more aggressive changes in scoping and for statements and maybe other places where backwards compat is inconvenient. ES2015 is sometimes awkward because it didn't drop compatibility and I would hate to see the same thing happen to coffeescript.

I might be able to invest some time in this if need be.

@coffeescriptbot
Copy link
Collaborator Author

From @GeoffreyBooth on 2016-10-13 19:17

At the moment there aren’t any syntax changes planned. Classes will be the biggest change, but the change is only what current CoffeeScript compiles to. There might be things that become disallowed, like class properties, but if that’s the case then those properties will throw compilation errors. You can see #4311 with regard to arrow functions and rest parameter syntax; basically we’re going to great lengths to preserve the current syntax.

@coffeescriptbot
Copy link
Collaborator Author

From @GeoffreyBooth on 2017-04-10 00:31

As we’re nearing the release of 2.0.0, it looks like there are no significant syntax changes. The most common one is needing to convert super to super().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant