This is not a lambda function question, I know that I can assign a lambda to a variable.
What\'s the point of allowing us to declare, but not define a function insid
Nested function declarations are allowed probably for 1. Forward references 2. To be able to declare a pointer to function(s) and pass around other function(s) in a limited scope.
Nested function definitions are not allowed probably due to issues like 1. Optimization 2. Recursion (enclosing and nested defined function(s)) 3. Re-entrancy 4. Concurrency and other multithread access issues.
From my limited understanding :)