`...` vs `..=` for inclusive ranges

I personally would like to see something like this:

match i {
    [0..10] => ..., // would be 0 up to and including 10
    (0..10] => ..., //  would be 1 up to and including 10
    (0..10) => ..., // would be 1 up to and including 9
    [0..10) => ..., // would be 0 up to and including 9
}

But I feel like it would be to close to existing syntax.

1 Like