2 ms·
Maybe, but the final solution is definitely harder to follow because the function definition now doesn't contain all the possible code that can run. You have to
by IshKebab 4y ago
Maybe, but the final solution is definitely harder to follow because the function definition now doesn't contain all the possible code that can run. You have to "find all references" and read the code of all the callers to know what it might do.
It's more loosely coupled and that always makes code harder to follow. So I'd say it could go either way. Depends on the specific example.