Skip to content

Tracking issue for (DoubleEnded)?Iterator::rfind #39480

Description

@clarfonthey

PR: #39399

Unanswered: should this method be part of DoubleEndedIterator or Iterator?

Pros:

  • Avoids cluttering Iterator docs
  • Avoids extra constraint in where clause
  • Puts method where it is actually enabled

Cons:

  • Inconsistency if other methods (rev, rposition) aren't moved to DEI
  • Breaking change if other methods are moved to DEI
  • Fragments iterator docs; no longer just in Iterator
  • Requires typing DoubleEndedIterator::rfind if passed into a function instead of Iterator::find

Noting the above, should Iterator::rev and Iterator::rposition be moved to DEI as well?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-unstableBlocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-api[DEPRECATED; DO NOT USE]final-comment-periodIn the final comment period and will be merged soon unless new substantive objections are raised.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions