> Avoid using multiple labeled returns in a lam...
# codingconventions
k
Avoid using multiple labeled returns in a lambda. Consider restructuring the lambda so that it will have a single exit point. If that's not possible or not clear enough, convert the lambda into an anonymous function.
if the lambda doesn't close over any locals, why not a proper method?
y
kirillrakhman: not sure what you mean. lambdas, anonymous functions and local functions can all close over locals
k
I meant, instead of using a local function, you can just use normal function
but only, if the lambda doesn't close over locals