Why .Threads?

julia> using .Threads

julia> Threads
Base.Threads

Modules docs says

A relative module qualifier starts with a period (.), which corresponds to the current module, and each successive . leads to the parent of the current module. This should be followed by modules if necessary, and eventually the actual name to access, all separated by .s.

but Threads isn’t relative to the current module. Why is a dot used?

Threads is exported from Base which is used in Main which is the current module in the REPL.

3 Likes