try
introduces local scope (independently of Pluto):
julia> try
test = 2
catch
nothing
end
2
julia> test
ERROR: UndefVarError: test not defined
so the test
inside the try
is just like a local variable test
inside a for
loop-- it doesn’t affect the global scope.