This is very intentional and is addressed in the manual (http://docs.julialang.org/en/release-0.3/manual/variables-and-scoping/?highlight=forward). The key thing to realize is that functions are just global identifiers, too. If forward references weren't possible, Julia would require c-style forward definitions and header files.
- [julia-users] Why is Forward Reference possible? Wendell Zheng
- [julia-users] Re: Why is Forward Reference possible? Yuuki Soho
- Re: [julia-users] Re: Why is Forward Reference poss... Tamas Papp
- [julia-users] Re: Why is Forward Reference possible... Wendell Zheng
- [julia-users] Re: Why is Forward Reference poss... Matt Bauman
