Skip to content

Mutation insde for-loop not visible outside #29

Description

@kaygro

When mutating a variable inside a for-loop, these changes get reverted on loop exit.
The presence of a test for this scenario suggests this is by design, but it is quite unlike most programming languages. Unfortunately this makes you use more boilerplate code inside templates than necessary.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions