Skip to content

Mutation insde for-loop not visible outside #29

@kaygro

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.

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