I wish Julia issued a warning in this case -- maybe there is an issue about this, but I could not find it.
Tamas On Wed, Mar 11 2015, Yuuki Soho wrote: > I think Julia implicitly assume that i is a global variable, i.e. your > function is equivalent to > > f = () -> begin > global i > return i > end > > So it compiles but throws an error at run-time if i is not defined in the > global scope.
