-
Type:
Improvement
-
Status: Resolved
-
Priority:
Medium
-
Resolution: Won't Do
-
Component/s: None
-
Labels:None
One approach to using nested functions is grouping pieces of code, for instance, configuration of several views in a function called `configureViews`.
In such task, the natural way of looking at it would be to call the functions first, as they serve as a sort of summary, and then define the functions later.
Doing so will result in the following error being displayed:
`Use of local variable `[functionName]` before its declaration`
See attached Playground.