On Wednesday, 13 May 2020 at 12:58:11 UTC, Adam D. Ruppe wrote:
On Wednesday, 13 May 2020 at 12:45:06 UTC, Andrey wrote:Why this works:It's just defined that way. Local functions follow local variable rules - must be declared before use and names not allowed to overload each other.There might be a deeper reason too but like that's the main thing, they just work like any other local vars.
Overload for local functions will be very useful thing. Otherwise it is PHP or C.