Skip to content

Improper use of while loop #380

@flumaves

Description

@flumaves

Terms

Issue

var i = 0
while i < 3 {
    // doing work here
    i += 1
}

The for loop is a better alternative here, like

for i in 0..<3 {
    // doing work here
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomershelp wantedExtra attention is neededrefactorRefactor code to improve quality

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions