You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The full range .. is very handy notation for filling up the space. RangeToInclusive..= can always be replaced by RangeTo, but it's naturally expected for ergonomic API that any place accepting RangeTo also accepts RangeToInclusive.
The text was updated successfully, but these errors were encountered:
#2471 implemented Range{From,Full,To} but RangeFull was omitted for lack of use cases.
Here is a use case:
I have a grid API where a user can add rectangular items with range syntax.
This represents
The full range
..
is very handy notation for filling up the space.RangeToInclusive
..=
can always be replaced byRangeTo
, but it's naturally expected for ergonomic API that any place acceptingRangeTo
also acceptsRangeToInclusive
.The text was updated successfully, but these errors were encountered: