Skip to content

Remove do loops #2230

Closed
Closed

Description

@brson

There is exactly one do loop outside of tests in the Rust code base. We have lots of other ways to iterate.

Activity

  1. catamorphism commented on Apr 19, 2012

    @catamorphism
    Contributor

    I agree with this. I never liked do loops from the beginning, just because it seems like they should desugar to while loops (or the other way around). And they can be implemented with a macro (I assume).

  2. graydon commented on May 9, 2012

    @graydon
    Contributor

    I don't really care. loop + break gets you to the same place.

  3. paulstansifer commented on May 11, 2012

    @paulstansifer
    Contributor

    closed by 13c924c

  4. added a commit that references this issue on Sep 22, 2022
  5. added a commit that references this issue on Sep 23, 2026
  6. added a commit that references this issue on Oct 2, 2026
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

    A-codegenArea: Code generationA-grammarArea: The grammar of RustA-type-systemArea: Type systemE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions