-
Notifications
You must be signed in to change notification settings - Fork 157
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
Curry named functions #751
Comments
it's mostly because "labels" attach to "blocks", nothing else. (a for, a function, etc). You ought to use ~function a(b, c)
b for curried functions anyway ;-). |
I agree to use |
also having an issue with creating a curried named function as suggested above ala ~function named (a, b)
a + b which compiles to a bound named function w/ 1.4.0 as expected var this$ = this;
function named(a, b){
return a + b;
} all the other combinations i have tried (e.g. perhaps it is not possible to create a curried named function as they are constants? thanks. |
The problem is that you can't.
The only fix i can think of would be to wrap the body of the function and not the declaration. |
If you have a named function that curries (I think that's how you'd name it?), the function isn't scoped properly.
Expected:
Actual:
The text was updated successfully, but these errors were encountered: