3 ms·
There is a nice blog post that concisely explains why local functions are better than lambdas: https://asizikov.github.io/2016/04/15/thoughts-on-local-functions
by kwhitefoot 9y ago
There is a nice blog post that concisely explains why local functions are better than lambdas: https://asizikov.github.io/2016/04/15/thoughts-on-local-functions/ https://asizikov.github.io/2016/04/15/thoughts-on-local-func...
- WalterBright 9y agoC#: "Local functions can not be static." Static nested (i.e. local) functions in D can be static. What that does is prevent the function for accessing locals in the enclosing scope(s).