In the REPL, to test some code, I often do things like
julia> a = 0
0
julia> for i=1:3
a+=i
end
But under Julia 1.0 this will now throw an error
ERROR: UndefVarError: a not defined
Stacktrace:
[1] top-level scope at ./REPL[2]:2 [inlined]
[2] top-level scope at ./none:0
The fix is to define
julia> global a=0
which is quite annoying. Is there a way to implicitly make every variable declaration in the REPL global?