2 ms·
In the article example: double divMe(double a, double b){ return double(a/b); } The "return double(a/b)" is excessive, right? Returning a/b h
by metadat 4y ago
In the article example:
double divMe(double a, double b){
return double(a/b);
}
The "return double(a/b)" is excessive, right? Returning a/b has the same effect, and I'd expect they compile to the exact same thing in this particular case.
Is there a reason to prefer the extra verbose version?
The excessive redundancy irks the perfectionist in me.