coco icon indicating copy to clipboard operation
coco copied to clipboard

allow `=` in destructuring assignment default

Open aeosynth opened this issue 12 years ago • 2 comments
trafficstars

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

aeosynth avatar Apr 01 '13 06:04 aeosynth

Iirc, = in params is only allowed for historical reasons

vendethiel avatar Apr 01 '13 08:04 vendethiel

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

aeosynth avatar Apr 01 '13 08:04 aeosynth