Skip to content

chained comparison #3694

Closed
Closed
@namecallfilter

Description

@namecallfilter

Would it be a good idea to add chained comparison to rust?

I feel like it would be a good idea to have the ability to do 1 <= num <= 512 instead of having to 1 <= num || num <= 512.

I think having the num || num is more verbose and could be done with chained comparison which is a lot simpler and in my opinion easier to read.

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