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

allow = in destructuring assignment default #215

Open
aeosynth opened this issue Apr 1, 2013 · 2 comments
Open

allow = in destructuring assignment default #215

aeosynth opened this issue Apr 1, 2013 · 2 comments

Comments

@aeosynth
Copy link

aeosynth commented Apr 1, 2013

https://github.com/satyr/coco/wiki/additions#assignment-defaults-o-----a--b--c

For parameters, = can be used in place of ?.

i would like to use = for destructuring as well

@vendethiel
Copy link
Contributor

Iirc, = in params is only allowed for historical reasons

@aeosynth
Copy link
Author

aeosynth commented Apr 1, 2013

i kinda guessed that - coffeescript uses = for default assignments. i would also be ok with removing = (#207); the inconsistency is what really bugs me

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

2 participants