Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mutation insde for-loop not visible outside #29

Open
kaygro opened this issue Jan 30, 2018 · 2 comments
Open

Mutation insde for-loop not visible outside #29

kaygro opened this issue Jan 30, 2018 · 2 comments

Comments

@kaygro
Copy link

kaygro commented Jan 30, 2018

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.

@TadeasKriz
Copy link
Member

Hi, what part of SwiftKit are we talking about? We deprecated SwiftKit quite a while ago and moved it to separate repositories.

@kaygro
Copy link
Author

kaygro commented Jan 31, 2018

Whoops, this was meant for StencilSwiftKit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants