4 ms·
Whether that’s clearer or not should be a matter of debate. I find the introduction of a function for this a potential source of confusion, when it just serves
by tobr 7y ago
Whether that’s clearer or not should be a matter of debate. I find the introduction of a function for this a potential source of confusion, when it just serves to turn statements into an expression. But it’s not an unreasonable solution.
However, I’m not sure how this is supposed to be “written far more concisely”? It’s more verbose, involves more different constructs, more levels of indirection - pretty much for any definition of “conciseness“ I can think of, it is worse.