DEV Community

Discussion on: C# 8.0 static local functions

Collapse
 
jonasbarka profile image
Jonas Barkå

I wonder about the reasoning behind allowing the standard local functions to access the parents variables.

Collapse
 
nickraphael profile image
Nick Raphael

I'm guess that it was simply easier to implement it that way. No need to manage a seperate context. Or maybe the compiler was restricted in 7.0. With static local functions with have the option of both.