Re:What does this code do?
by blankity_blank on Wednesday July 21, 2010 @04:00PM
(#1536355)
This actually further highlights the issue of code that is "self-documenting" to one person but not the other. "get_exponent" would confuse the heck out of me (is it just supposed to return the second argument unchanged?), but I would have no trouble with "pow" or "exp". But a comment that says "raise x to the power of n; n must be an int" leaves much less room for interpretation.
[ Parent
| on HN ]
There are no comments on this comment yet.