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] May offer an compile option use let instead of var #4639

Closed
IamIpanda opened this issue Aug 13, 2017 · 1 comment
Closed

[CS2] May offer an compile option use let instead of var #4639

IamIpanda opened this issue Aug 13, 2017 · 1 comment

Comments

@IamIpanda
Copy link

I have read the paragraph let and const: block-scoped and reassignment-protected variables on the coffeescript v2 website, But I want:
May you offer an option, make coffeescript ALL USE let instead of var in compiled code as it's also only one type of variable. Using var sometimes trouble me like in the code under:

fs = []
a = [1,2,3,4,5]
for i in a
	fs.push -> console.log i
f.call this for f in fs

If I'm asking for a selection whose conclusion had been made, I'm sorry and just close this.

@GeoffreyBooth
Copy link
Collaborator

Duplicate of #4255.

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