rest parameters
Andy Earnshaw
andyearnshaw at gmail.com
Fri Oct 9 12:48:08 UTC 2015
On Wed, 7 Oct 2015 at 19:59 Isiah Meadows <isiahmeadows at gmail.com> wrote:
> Andy, look at my most recent post to this list. What do you think of that
> point?
>
> https://mail.mozilla.org/pipermail/es-discuss/2015-October/044337.html
CoffeeScript appears to have exactly the behaviour I (and most others,
presumably) would have expected. I agree that the code in your gist is
tricky to follow as a result of this limitation on rest params and not
easily optimised.
As far as I can tell, the main argument against is that the use cases
aren't compelling enough to warrant the additional complexity in the spec.
You said yourself that yours wasn't a common use case and although the
callback-at-the-end pattern is pretty common, that's not so much an
argument for rest in the middle as much as it is for defaults in the middle.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20151009/38b1f232/attachment.html>
More information about the es-discuss
mailing list