# \`...\` vs \`..=\` for inclusive ranges

**URL:** https://internals.rust-lang.org/t/vs-for-inclusive-ranges/1539
**Category:** ideas (deprecated)
**Created:** [February 4, 2015, 1:23pm UTC](https://internals.rust-lang.org/t/vs-for-inclusive-ranges/1539 "2015-02-04T13:23:56Z")
**Posts on this page:** 1
**Showing post:** 47

<div class="post-metadata">

### Author: ![ecnahc515](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/ecnahc515/32/459_2.png) [@ecnahc515](https://internals.rust-lang.org/u/ecnahc515)
#### Post date: [February 14, 2015, 9:38pm UTC](https://internals.rust-lang.org/t/vs-for-inclusive-ranges/1539/47 "2015-02-14T21:38:52Z")

</div>

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.

---

_[View the full topic](https://internals.rust-lang.org/t/vs-for-inclusive-ranges/1539)._
