2 ms·
Functions generally need to be documented, especially if there are any gotchas not obvious from the function signature. And one should always read the documenta
by layer8 2y ago
Functions generally need to be documented, especially if there are any gotchas not obvious from the function signature. And one should always read the documentation. Good names are for discovery and recollection, and for the call-site code to be more intelligible, but they don’t replace having a specification of the function’s interface contract, and client code properly taking it into account.