Skip to content

Loop x times #2792

@pbbob

Description

@pbbob

It would be nice to be able to do this:

let count = 15;
loop count {
    println!("{}", count);
}

would loop 15 times.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-control-flowProposals relating to control flow.A-expressionsTerm language related proposals & ideasA-syntaxSyntax related proposals & ideasT-langRelevant to the language team, which will review and decide on the RFC.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions