This and related topics seem to crop up a lot, e.g. almost concurrently this discussion happened: https://groups.google.com/d/msg/julia-users/xbsdu8Ob4cw/2Vtyo9CFhYoJ
And Kevin opened this issue to improve the documentation: https://github.com/JuliaLang/julia/issues/6082 It is a bit focused on packages but the doc-improvement should also be including this 'just running' a file issue. I linked to this thread in the issue now. On Tue, 2014-03-11 at 19:28, [email protected] wrote: > Hi Kevin: > > As a convert from Matlab, the first thing I asked for when shopping around > for an alternative language for scientific computing was "what's the command > I use to run a file, top to bottom". > From my view, this is a important command to have front and center. I would > want to avoid forcing newbies to use "require"... for example just by looking > at the help documentation I knew there would be some spurious behavior I > didn't understand... > > julia> ?require > Loading help data... > Base.require(file::String...) > > Load source files once, in the context of the "Main" module, on > every active node, searching the system-wide "LOAD_PATH" for > files. "require" is considered a top-level operation, so it sets > the current "include" path but does not use it to search for > files (see help for "include"). This function is typically used > to load library code, and is implicitly called by "using" to load > packages. > > > > Just my two cents. > Cheers, > Ethan
