Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Passing 'global' functions

$
0
0

It is recommended to pass global variables to functions. What I wonder is whether it is good practice to pass functions as well. These functions can be declared in global scope or in outer (relative to an inner) scope. I have seen some code where functions are passed but this does not appear to be really necessary for the program to run correctly.

3 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles