Use of "export" keyword

What is the actual use of keyword “export” ? I have read julia documentation , but not very clear.
What if we dont use export at all?

If you don’t use export, nothing will be exported.

For these types of very basic questions about how the language works the manual is a good reference:

https://docs.julialang.org/en/v1/manual/modules/#Export-lists

3 Likes

Just to have a fast answer here in the thread itself: if you do not export anything from a module then using the module will not bring anything from the module (besides the module itself) in the current scope, i.e., you will need to type ModuleName.function_name for everything.

1 Like

Added a PR to clarify, since that section of the manual didn’t mention using: https://github.com/JuliaLang/julia/pull/44744

4 Likes