Skip to content
This repository has been archived by the owner on Feb 19, 2018. It is now read-only.

CS2 Discussion: Question: 1to2? #50

Closed
za-creature opened this issue Oct 13, 2016 · 3 comments
Closed

CS2 Discussion: Question: 1to2? #50

za-creature opened this issue Oct 13, 2016 · 3 comments
Labels

Comments

@za-creature
Copy link

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.

@GeoffreyBooth
Copy link
Collaborator

GeoffreyBooth commented Oct 13, 2016

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 jashkenas/coffeescript#4311 with regard to arrow functions and rest parameter syntax; basically we’re going to great lengths to preserve the current syntax.

@GeoffreyBooth
Copy link
Collaborator

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().

@coffeescriptbot coffeescriptbot changed the title 1to2? CS2 Discussion: Question: 1to2? Feb 19, 2018
@coffeescriptbot
Copy link
Collaborator

Migrated to jashkenas/coffeescript#4944

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

No branches or pull requests

3 participants