# \`RangeExpression\`s with exclusive lower bounds

**URL:** <https://forums.swift.org/t/rangeexpression-s-with-exclusive-lower-bounds/26401>\
**Category:** Discussion\
**Created:** [June 28, 2019, 5:16am UTC](https://forums.swift.org/t/rangeexpression-s-with-exclusive-lower-bounds/26401 "2019-06-28T05:16:42Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![xwu](https://avatars.discourse-cdn.com/v4/letter/x/b487fb/32.png) [@xwu](https://forums.swift.org/u/xwu)\
**Post date:** [June 28, 2019, 11:48am UTC](https://forums.swift.org/t/rangeexpression-s-with-exclusive-lower-bounds/26401/4 "2019-06-28T11:48:50Z")

</div>

> [@mattpolzin](#):
>
> I would love to see new `RangeExpression` types for ranges with exclusive lower bounds in the standard library and I personally find `x<..` , `x<.<y` , and `x<..y` to be intuitive ways to round off the range operators.
> 
> What do you all think? Am I missing a good reason to leave these last few range types out or is it just a matter of someone getting around to proposing and adding them?

This has come up before, but you’re right it’s hard to find on this list likely because it was so long ago.

One major barrier is that the obvious spellings (and almost all variations on them) are not valid in Swift, because operators in Swift that contain `.` must begin with `.`

Changing the rules to allow the desired operators is one approach but gets bogged down because in Swift any character must be used either for operators or for identifiers, and the divide among them is currently rather haphazard and in need of refinement. It’s a [much larger topic](https://forums.swift.org/t/proposal-refining-identifier-and-operator-symbology/4304) to divide emoji and math symbols rationally among operator and identifier characters.

The alternative approach is to make these range operators a one-off exception, but that does complicate the language.

The question is whether such a complication can be justified to fill out the lesser used range types—they do have some role but, to be honest, several years after proposing to add them, I don’t miss them.

All of this is to say that there’s no point in bikeshedding the spelling here. What would progress the topic is coming up with compelling use cases. It’s not enough that it would “fill out” the ranges—what scenarios have you encountered where using such a range instead of the alternatives (manually comparing end points, for example) demonstrate that such ranges would make the language dramatically more expressive?

---

_[View the full topic](https://forums.swift.org/t/rangeexpression-s-with-exclusive-lower-bounds/26401)._
