3 ms·
It would be much better to (also) put the units int the function name. Don't just have sleep() but sleepSeconds(). This prevents the person writing code from ha
by phkahler 5y ago
It would be much better to (also) put the units int the function name. Don't just have sleep() but sleepSeconds(). This prevents the person writing code from having to look up or guess what units the parameter has, as well as a person reading it later. This is more an API design issue than an API user issue, although both approaches can be used together.
- hutzlibu 5y agoBut I this is not really necessary, if you use a IDE with integrated docs, where you see the parameters of a function on a mouseover.