Ranges

Cyril Auburtin cyril.auburtin at gmail.com
Sat Sep 15 11:23:23 UTC 2018


Range literals could take form in
https://github.com/tc39/proposal-slice-notation/issues/19#issuecomment-421453934

On Thu, Jul 26, 2018 at 1:30 PM Cyril Auburtin <cyril.auburtin at gmail.com>
wrote:

> I started wrapping the idea here https://github.com/caub/proposal-range
>
> On Wed, Jul 18, 2018 at 6:48 PM Cyril Auburtin <cyril.auburtin at gmail.com>
> wrote:
>
>> I really like this possible new syntax for ranges:
>>
>> ```js
>> [2:9] // [2,3,4,5,6,7,8,9]
>> [1, 2, 4:7, 9] // [1, 2, 4, 5, 6, 7, 9]
>> [1:6:2] // [1, 3, 5]
>> ```
>>
>> Would someone in TC39 be up to champion this?
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20180915/183934f5/attachment.html>


More information about the es-discuss mailing list