If you are actually going to use a "real" (i.e. not `static`) nested function anyway, is there any reason not to just go for a lambda?