-
-
Notifications
You must be signed in to change notification settings - Fork 17.8k
Add range notation #19794
Copy link
Copy link
Closed
Labels
B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.
Description
Activity
Metadata
Metadata
Assignees
Labels
B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.
Add first class ranges:
start..end,start.., and (implicitly) a whole range represented by a structFullRange. The first two desugar toRangeandRangeFromstructs, which implementIteratorand so allow, for example,for i in 2i..10 { }.