3 ms·
OP should've written just `s=0`, yes. Because showcases their complaint better since, although works in REPL, also fails when in file. (It's also the example gi
by forgotpwd16 2y ago
OP should've written just `s=0`, yes. Because showcases their complaint better since, although works in REPL, also fails when in file. (It's also the example given in docs[1].) Now, it looks like they tried to make it fail.
[1]: https://docs.julialang.org/en/v1/manual/variables-and-scoping/#local-scope https://docs.julialang.org/en/v1/manual/variables-and-scopin...