Wondering if there is any update on this.
1- there were some very long discussions here and on github. Does anybody know if any conclusion has been reached?
2 - I was wondering if the global declaration and the explicit reference creates any (significant) overhead considering that it’s looped over at every iteration?
3 - if a solution is still open for discussion, maybe something inspired by PHP’s lambdas syntax would work? In julia it could look like:
somevar, someothervar = 10, 100
for i in 1:1_000 accessing (somevar, someothervar)
# do stuff with somevar and someothervar
accessing block would be optional. It could start as syntactic sugar for the ugly
global as it’s more readable, in my opinion. Plus, as a less imperative approach, later on, the underlying implementation could be optimised at compiler level.
Just more 2c.