3 ms·
It is not about char length. The first is an expression while the second is a statement. I find it easy to debug code with expressions rather than statements, c
by owebmaster 9y ago
It is not about char length. The first is an expression while the second is a statement. I find it easy to debug code with expressions rather than statements, could you clarify why the first way would be worse for debugability?
- Veedrac 9y agoThe only meaningful difference between the two is that the lambda is named <lambda> and the function is named even. I'm happy for you to use lambdas in an expression context, if that's how you like to roll, but assignment is a statement anyway, so it doesn't matter there and you might as well choose the one that produces helpful tracebacks.