-
Notifications
You must be signed in to change notification settings - Fork 46
Auto let Fix #105
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
Auto let Fix #105
Conversation
If we want |
Return let can be fixed, but it would be only the start as I’m checking the PR similar to that for coffeescript: jashkenas/coffeescript#5395 |
Here's an idea: When a declaration is in return position prepend it with a simple
This may be useful for Civet in general to have declarations behave more like expressions. |
Nice, yes, maybe we can use this to allow |
I think it would be quite normal for following code before how it interact with implicit return
|
Anyway, this PR is probably worth merging already, as it fixes some bugs in |
Comment added. |
Right, this currently compiles to |
|
Fix missing let decs inner declaration.
I'm not sure if it's needed to fix that breaking
return let
which won't happen onauto Var
as autovar move all variables to top.