Skip to content

Deprecate fold_while() in favor of Iterator::try_fold() #1106

@ronnodas

Description

@ronnodas

This was previously discussed in #469, but it seems that was mainly about documenting an idiomatic way to rewrite an example using try_fold(). Maybe there was already a deprecation that has since been reverted? It's also mentioned in #223 as something that will be deprecated and removed.

The ControlFlow enum, which seems to have the most apt semantics, has been stable since Rust 1.55. FoldWhile does have an into_inner() method that doesn't have a direct analog on ControlFlow yet, but this seems a minor ergonomics deficiency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions