Marko Novakovic
11/04/2021, 9:58 AMJoffrey
11/04/2021, 10:09 AMKlitos Kyriacou
11/04/2021, 12:24 PMJoffrey
11/04/2021, 2:30 PMNote also that nested functions allow the use of their parent function's local variables and arguments, something you can't do with a non-nested function unless you explicitly pass them.This is precisely the only reason that made me need a nested function, but it only happened once so far. And honestly if the enclosing function is big enough so that you need smaller functions to operate on its local variables, you should usually instead create a class to hold that local state and methods to operate on it
Stephan Schroeder
11/05/2021, 7:37 AM