What’s the best practice when returning something from a routine? Should I return a status bit always or just on failure? For example:
Return(0, “Failed because….”) on failure,
Return(1, success_value, second_success_value) on success.
Or
Return(0, “Failed because….”) on failure,
Return( success_value, second_success_value) on success.
I usually program in Perl, but I guess the question stands for whatever language I might try to program in. Thanks!