J
Jakob Bieling
Hi,
somehow the prejudice of exceptions being rather slow (compared to,
ie. returning an error value and checking that) keeps sticking around ..
at least around me. I guess this is also why I refrained from using them
often. But are they 'slow' in general?
I guess it also depends on how, when and where you use them. What I
am looking for is a sort of guideline that explains where exceptions are
approriate and where they are not. The name 'exception' implies to me,
that you should not use them to notify the caller of 'warnings', but use
return values for that kind of 'error' instead. But this is rather just
a guess, which is why I am posting here, to hear your advice.
With this post, I am not trying to ditch exceptions. I do not know
much about their use, so please excuse wording, that might sound
flame-ish.
Thank you!
somehow the prejudice of exceptions being rather slow (compared to,
ie. returning an error value and checking that) keeps sticking around ..
at least around me. I guess this is also why I refrained from using them
often. But are they 'slow' in general?
I guess it also depends on how, when and where you use them. What I
am looking for is a sort of guideline that explains where exceptions are
approriate and where they are not. The name 'exception' implies to me,
that you should not use them to notify the caller of 'warnings', but use
return values for that kind of 'error' instead. But this is rather just
a guess, which is why I am posting here, to hear your advice.
With this post, I am not trying to ditch exceptions. I do not know
much about their use, so please excuse wording, that might sound
flame-ish.
Thank you!