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

Quit generating implicit block after -> #110

Closed
satyr opened this issue Jan 31, 2012 · 2 comments
Closed

Quit generating implicit block after -> #110

satyr opened this issue Jan 31, 2012 · 2 comments
Labels

Comments

@satyr
Copy link
Owner

satyr commented Jan 31, 2012

Instead add grammar Parameters -> Expression.

Pros

We can remove the adhoc hack for jashkenas/coffeescript#1611.
f -> a.b, c will naturally work.

Cons

f -> a; b will backward-incompatibly be parsed as

f -> a
b

rather than current

f ->
  a
  b
@satyr
Copy link
Owner Author

satyr commented Feb 3, 2012

On second thought, this may require additional large changes or just be too late at this point.

For example, to keep the current behavior of -> a if b (meaning -> (a if b)) -> would need to bind softer than post-if, but f -> a if b would still mean f(-> a) if b due to the way implicit call is generated.

@satyr
Copy link
Owner Author

satyr commented Jul 12, 2012

#127

@satyr satyr closed this as completed Jul 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant