May-08-2017, 08:55 AM
(May-08-2017, 08:48 AM)Skaperen Wrote: is it considered good practice to return a reference to a function defined inside a function for the callerThis is perfectly fine and one of the wonderful things about functions as first class objects.
Quote:would it matter for this if lambda was used?There is zero difference between a function defined with lambda and a standard function aside from where it can appear syntactically.