-
Notifications
You must be signed in to change notification settings - Fork 48
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
const
and/or var
#139
Comments
const is a pretty awesome idea if it'll be compile time. 👍 |
Yes, assignment is horrible. But you won't be able to enforce this statically when the constants are members of the global scope. Is that an acceptable inconsistency? |
Global variables are read-only already:
|
You can't statically catch those assignments. |
Don't have to.
|
Exactly. When |
Yes. |
That's reasonable. |
@michaelficarra would you consider this (at least |
@paulmillr: Absolutely not. The goal of CoffeeScriptRedux is to be feature-compatible with CoffeeScript, with no feature additions besides those listed on the kickstarter page. Once it reaches that state, I plan to fork it and add cool features (like |
ah, that's even cooler. then it will be truly drop-in replace. nice to hear. |
const
Performs a series of assignments and flags the variables as read-only.
var
Avoids awakward
a = b = void
.The text was updated successfully, but these errors were encountered: