3 ms·
While function overloading is a neat trick, I think it's a step backwards in terms of code readability. In those instances, it's only clear from the usage rath
by laumars 12y ago
While function overloading is a neat trick, I think it's a step backwards in terms of code readability.
In those instances, it's only clear from the usage rather than the name how that function behaves, so I think I'd rather see getX and setX over X() and X(int x) and be absolutely clear about the role of that function.