coco icon indicating copy to clipboard operation
coco copied to clipboard

soaked destructuring

Open aeosynth opened this issue 12 years ago • 1 comments

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

aeosynth avatar Mar 13 '13 07:03 aeosynth

  • 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.

satyr avatar Mar 13 '13 12:03 satyr