satyr / coco

Unfancy CoffeeScript
http://satyr.github.com/coco/
MIT License
498 stars 48 forks source link

allow `=` in destructuring assignment default #215

Open aeosynth opened 11 years ago

aeosynth commented 11 years ago

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

vendethiel commented 11 years ago

Iirc, = in params is only allowed for historical reasons

aeosynth commented 11 years ago

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