Re:Reducers, transducers and core.async in Clojure
by owebmaster on Wednesday June 07, 2017 @12:29PM
(#14507719)
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?
[ Parent
| on HN ]
Re:Reducers, transducers and core.async in Clojure
by Veedrac on Wednesday June 07, 2017 @12:46PM
(#14507866)
The 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.