Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contradiction in RFC1192 (Inclusive Ranges) #1537

Closed
thepowersgang opened this issue Mar 11, 2016 · 1 comment
Closed

Contradiction in RFC1192 (Inclusive Ranges) #1537

thepowersgang opened this issue Mar 11, 2016 · 1 comment

Comments

@thepowersgang
Copy link
Contributor

The "Detailed design" section mentions

Writing ...b in an expression desugars to std::ops::RangeToInclusive { end: b }.

However, the "Alternatives" sections states

This RFC doesn't propose non-double-ended syntax, like a..., ...b or ... since it isn't clear that this is so useful. Maybe it is.

From what I have gathered, the specified design has been implemented.

@durka
Copy link
Contributor

durka commented Mar 11, 2016

Hmm, you're right. I did implement a...b and ...b. My understanding is a... is reserved for possible variadic generic syntax In The Future.

There was discussion in the RFC about ...b, and the text was updated but some parts missed as you noticed.

cc @aturon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants