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