So I read the documentation for using and import in Julia. However what this does not tell me is how I should be using these two statements in practice (and, given the lack of orthogonality, this is not too easy).
Case in point: let's put the following trivial code in "myfile.jl":
module MyModule
f() = 1
export f
end
import .MyModule # or: using .MyModule
Run Code Online (Sandbox Code Playgroud)
if I use import on the last line, then f is not exported to …
julia ×1