is it considered good practice to return a reference to a function defined inside a function for the caller (or code it pass the reference along to) to call? would it matter for this if lambda was used?
note: this means the function that defined the function whose reference is returned, does return before that defined function gets called.
my coding intention is to eliminate a lot of tests in the function that are testing the same thing in each many calls with a choice definition that does only what is needed every time. it does work, but i want to know how much flak i will get for doing it.
note: this means the function that defined the function whose reference is returned, does return before that defined function gets called.
my coding intention is to eliminate a lot of tests in the function that are testing the same thing in each many calls with a choice definition that does only what is needed every time. it does work, but i want to know how much flak i will get for doing it.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.