Skip to content

Contradiction in RFC1192 (Inclusive Ranges) #1537

@thepowersgang

Description

@thepowersgang

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions