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

Allow javascript-reserved words, rename them during compilation #3584

Closed
beilharz opened this issue Aug 12, 2014 · 2 comments
Closed

Allow javascript-reserved words, rename them during compilation #3584

beilharz opened this issue Aug 12, 2014 · 2 comments

Comments

@beilharz
Copy link

Hi!

There is a variable in my code called package, it would be great if I would be allowed to write this in coffescript. Compilation could then rename this to something thats not reserved.

Any thoughts?

@michaelficarra
Copy link
Collaborator

Duplicate of #1452, which was closed with this comment:

It breaks API compatibility with JavaScript: JS cannot reference a variable, or call a function, by the same name that CoffeeScript identifies it with. You would never want to write a library that took advantage of this feature.

@beilharz
Copy link
Author

thanks & sorry

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

No branches or pull requests

2 participants