3 ms·
I think the main argument is the same as other comments pointed out: by factoring out code to separate functions, either they're functionally pure (and this is
by lultimouomo 6y ago
I think the main argument is the same as other comments pointed out: by factoring out code to separate functions, either they're functionally pure (and this is often hard to do, so much that none of your example functions were) or they're mutating state, which is something you want to have very clearly under your eyes, especially when you're in 'reading mode'.