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

soaked destructuring #208

Open
aeosynth opened this issue Mar 13, 2013 · 1 comment
Open

soaked destructuring #208

aeosynth opened this issue Mar 13, 2013 · 1 comment

Comments

@aeosynth
Copy link

sugar for a = b?a or c, {a or c} = b or {}

@satyr
Copy link
Owner

satyr commented Mar 13, 2013

  • The latter way is already DRY and seems to suffice.
  • Soaks don't support default values anyway; we don't have sugar for if b? then b.a else c either.

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