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

Snippet improve for loop #2943

@programmer04

Description

@programmer04

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 🙂

Metadata

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