3 ms·
> Make functions, not procedures I can't agree - you don't need results of functions for checking errors - in many higher level languages you can return multip
by ajuc 16y ago
> Make functions, not procedures
I can't agree - you don't need results of functions for checking errors - in many higher level languages you can return multiple values, you can use exceptions, even in C++ without exceptions you can do this by in-out parameters, for example:
http://www.nopaste.pl/rtt http://www.nopaste.pl/rtt
I think it's cleaner than making nested if then else-s over every invocation of your functions.