Skip to content

proposal: Go 2: additional kinds of range loops #36308

Closed
@volodimyr

Description

@volodimyr

Lately, I've noticed how python loops with range are extremely simple and powerful.
What if we expand capabilities of using go loops with range?

for v := range 25 {} // no key here can be assigned It goes from 0 to 25.
for v := range 1:25 {} It goes from 1 to 25.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions