Re:Is_computer_on_fire() (2000)
by laumars on Sunday December 21, 2014 @05:13PM
(#8781146)
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.
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.