January 2020
Intermediate to advanced
532 pages
13h 31m
English
Functions defined inside a module are not exposed to the outside world. To expose them, the interest and rate functions can be exported using the export statement, so that users of this module can easily bring them into their own namespace:
export interest, rate
Once the functions are exported, they will be available in the client's scope where the module is loaded with the using keyword. Let's try to reference these functions from the Julia REPL before loading the module:

Because we have not loaded the Calculator package yet, neither interest nor rate is defined. Let's bring them in now:
When the using statement is executed, ...
Read now
Unlock full access