3 ms·
Better is subjective, but I prefer errors as return values because then the function signature states whether an error has to be handled or not. Exceptions can
by emseetech 2y ago
Better is subjective, but I prefer errors as return values because then the function signature states whether an error has to be handled or not. Exceptions can be forgotten about, but returned errors have to be explicitly ignored.