Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Snippet improve for loop #2943

Closed
Closed
@programmer04

Description

Now snippet for for looks like that:

for index := 0; index < count; index++ {
		
}

but in most languages and in Go too, using i instead of index is a convention:

for i := 0; i < count; i++ {
		
}

for example, this is recommended here https://talks.golang.org/2014/names.slide#6
What do you think about it? I'll be happy to make a Pull Request 🙂

Activity

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions