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

change behavior of a{ b.c } #221

Open
aeosynth opened this issue May 2, 2013 · 3 comments
Open

change behavior of a{ b.c } #221

aeosynth opened this issue May 2, 2013 · 3 comments

Comments

@aeosynth
Copy link

aeosynth commented May 2, 2013

request a{ b.c } -> { c: a.b.c }, instead of { c: a[b.c] }

$ coco -bce '{ a.b.c }'
Error: Parse error on line 1: Unexpected 'DOT'

that would probably have to parse

aeosynth referenced this issue in aeosynth/draft May 2, 2013
@vendethiel
Copy link
Contributor

rel : #163

@satyr
Copy link
Owner

satyr commented May 3, 2013

Treating the whole chain of subdestructuring assignee as sub-tail should be viable, but probably not very useful/intuitive until #163 is resolved. E.g.: a{(b.c)d}{d: a[b.c]d}

Use a.b{c} for now.

@aeosynth
Copy link
Author

aeosynth commented May 3, 2013

Use a.b{c} for now.

thanks, but for my use case, i want multiple levels of destructuring - a{ b.c, d }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants