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

Different behaviors on interpreting literal #2297

Closed
baoshan opened this issue May 2, 2012 · 3 comments
Closed

Different behaviors on interpreting literal #2297

baoshan opened this issue May 2, 2012 · 3 comments

Comments

@baoshan
Copy link

baoshan commented May 2, 2012

foo = 
  bar: magic 100, 200

which compiles correct, but

foo = 
  bar: magic 100, on

will produces: Error: In foo.coffee, Parse error on line 2: Unexpected ','
How should we judge when we could ignore the parantheses and when not?

@michaelficarra
Copy link
Collaborator

How should we judge when we could ignore the parantheses and when not?

This is a bug, not a feature. Those examples should be equivalent. This is also a duplicate. I'll try to find the duplicate issue.

@michaelficarra
Copy link
Collaborator

Duplicate of #1111, maybe #1896 as well.

@baoshan
Copy link
Author

baoshan commented May 2, 2012

Thanks, Michael.

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