4 ms·
And the first snipped is purposely badly written. One can use early returns to make code flat just like the monadic example.
by dullgiulio 9y ago
And the first snipped is purposely badly written. One can use early returns to make code flat just like the monadic example.
- mclehman 9y agoSure, you can flatten that example, but I'd still be interested in losing the explicit and repetitive null checks.
- andrewprock 9y agoIn the old days, we used #define macros to do that.