November 2017
Beginner
316 pages
6h 40m
English
The use of global variables in a wrong way can certainly put brakes on the performance. A global variable has a value and a data type associated with it, which can change over time, thus making it difficult for the compiler to actually optimize the code. As good practice, the contents should always be declared in the following manner:
julia> const A_CONSTANT = 10 10
Whenever possible, variables should be passed as arguments to functions in the code.
Read now
Unlock full access