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

Destructuring Arguments defaults #3818

Closed
zimt28 opened this issue Jan 30, 2015 · 1 comment
Closed

Destructuring Arguments defaults #3818

zimt28 opened this issue Jan 30, 2015 · 1 comment

Comments

@zimt28
Copy link

zimt28 commented Jan 30, 2015

I just learned that I can I can do

({prop1, prop2, prop3}) ->

This is great, but I'm used to doing

(optional = 'Default') ->

When I try to combine these two great things, it won't work.

({property, optional = 'Default'}) ->

I think this would be really nice to have, why isn't it implemented?

@vendethiel
Copy link
Collaborator

Duplicate of #2427.

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