4 ms·
Of course it is not less code, but that additional code is mostly declarative documentation in the form of function signatures. You'd have to hold it in your he
by pkolaczk 5y ago
Of course it is not less code, but that additional code is mostly declarative documentation in the form of function signatures. You'd have to hold it in your head anyways to understand the original code, but now it is stated explicitly.
The alternative to provide that information in a single big code blob would have to be code comments.
And there are chances you wouldn't have to keep the function implementaions in your head, if they were extracted reasonably. Do you need to keep the details of how `sort` is implemented to be able to understand what it does?