soaked destructuring
aeosynth opened this issue · comments
James Campos commented
sugar for a = b?a or c
, {a or c} = b or {}
Satoshi Murakami commented
- 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.