I'm not sure I'd prefer this over just using a function on the Array
prototype... you aren't saving too many characters and are adding some
ambiguity with regards to {} usage. I don't like it.
--
Michael J. Ryan - http://tracker1.info
On Mon, Mar 26, 2018 at 5:25 AM Mike Samuel <[email protected]> wrote:
>
>
> On Sun, Mar 25, 2018 at 9:20 PM, 月の影 <[email protected]> wrote:
>
>> Sometimes I got a infinity iterable sequences, I may want a partial
>> spreed syntax. `...iterableObject{from, to}`
>>
>
> How would you prevent ambiguity between the spread and blocks?
>
> iterable
> {
> from, to
> };
>
> is currently equivalent to
>
> iterable;
> {
> from, to;
> }
>
>
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss