Skip to content

Take care of boundaries in Step trait #20249

Closed
@bluss

Description

@bluss

Watch out for min/max boundaries in the Step trait.

It would be more natural for (0i8..) to produce a finite range, ending with the maximum value 127i8, than to overflow and produce an infinite iterator. Overflow is problematic, (and if we let it stay in, users will rely on the wrap around behavior.) and the Range objects and Step traits need to handle this with care.

The current Step trait supposes that every element has a successor, which is not necessarily true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions