Using Local Functions to Replace Comments

added by DotNetKicks
1/20/2020 2:39:21 AM

421 Views

One idea I've been thinking about recently is the replacement of comments with local function calls. Now this idea doesn't mean that it's ok to have massive functions that have no functional cohesion but instead in some circumstances it may improve readability. In C#, local functions were introduced in C# 7.0.


0 comments