Open lvella opened 3 weeks ago
We could consider allowing point 5 in https://github.com/powdr-labs/powdr/issues/1227 again. Any opinions?
My opinion is that our language is too similar to Rust, and too heavily reliant on lambda functions to not allow reuse of identifiers across different scopes.
In terms of issue #1227, I think 4, 5 and 6 should be allowed, and wouldn't mind 3 either.
Let's allow 5!
Consider this Powdr-ASM code, in a function body:
It fails with:
But if I change
x3
tox_3
in the second lambda:the error is avoided.