C# 7 introduced local nested functions. They provide even better structure to the code but do they improve readability? Are there any standards, recommendations and best practices? What is easier to read for your eyes and aesthetic feelings?
class Nested
{
void Foo()
{
void Bar()
{
}
void Baz()
{
}
Bar();
Baz();
}
}
class Usual
{
void Bar()
{
}
void Baz()
{
}
void Foo()
{
Bar();
Baz();
}
}