Re:Pascal at Apple
by bbrik on Saturday July 22, 2017 @06:36AM
(#14826423)
C# has just implemented nested functions.
[ Parent
| on HN ]
Re:Pascal at Apple
by kwhitefoot on Sunday July 23, 2017 @04:10AM
(#14831357)
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-func...
Re:Pascal at Apple
by WalterBright on Sunday July 23, 2017 @08:08PM
(#14835062)
C#: "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).