On Thu, 3 Nov 2016 at 22:11 Zach Lym <[email protected]> wrote:

> With regard to syntax, Rust's is the best that I've seen: '0 ... 10'
> inclusive and  '1 .. 9' exclusive.
>

I love Rust's syntax too, but unfortunately 1..<something> is already valid
ES syntax:

    1..Infinity
    //-> undefined

    Number.prototype.foo = 'bar'
    1..foo
    //-> 'bar'

You'd have to enforce the spaces around the operator, which would be weird
IMO.  `...` would be ok though.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to