# Global variables not visible within loops in scripts

**URL:** <https://discourse.julialang.org/t/global-variables-not-visible-within-loops-in-scripts/15849>\
**Category:** General Usage\
**Created:** [October 3, 2018, 9:54pm UTC](https://discourse.julialang.org/t/global-variables-not-visible-within-loops-in-scripts/15849 "2018-10-03T21:54:52Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [October 5, 2018, 4:36am UTC](https://discourse.julialang.org/t/global-variables-not-visible-within-loops-in-scripts/15849/7 "2018-10-05T04:36:55Z")

</div>

Well… There’s been some more discussion since a few hours ago 😅

> [@Another possible solution to the global scope debacle](https://discourse.julialang.org/t/another-possible-solution-to-the-global-scope-debacle/15894):
>
> The infamous issue [https://github.com/JuliaLang/julia/issues/28789](https://github.com/JuliaLang/julia/issues/28789) has been on most of our minds for a while now. Although I’ve stopped posting there, I can tell you I’ve been thinking about it a lot, as have Stefan and Jameson and others, and we have continued discussing it off and on. We should really try to get it right. Last time around, we more-or-less settled on changing only the REPL, which has the main advantage of being non-breaking for most code. But after sleeping on it, it does not …

---

_[View the full topic](https://discourse.julialang.org/t/global-variables-not-visible-within-loops-in-scripts/15849)._
