Michael Theriot (2016-10-01T14:34:14.000Z)
I think this is because there's no universal way of determining when an
iterator ends. The only way this could work for all iterators would require
popping values off of `a` after they've been added.

On Sat, Oct 1, 2016 at 6:17 AM, Cyril Auburtin <cyril.auburtin at gmail.com>
wrote:

> It was possibly already discussed, but why isn't:
> ```
> var [...a, last] = [1,2,3];
> ```
> supported?
>
> I don't see the problem, as long as there's one ... only
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20161001/d2f6d9dd/attachment.html>
michael.lee.theriot at gmail.com (2016-10-01T15:01:39.493Z)
I think this is because there's no universal way of determining when an iterator ends (beforehand). The only way this could work for all iterators would require popping values off of `a` after they've been added.