Posted by Ian on 10/24/66 11:32
Thomas Mlynarczyk wrote:
>
> What I'm looking for is the best suited general return value for cases where
> an operation could not be successfully completed as expected and the
> function is not able to fix the error by itself and the error is of a nature
> where "drastic measures" like throwing an error or an exception would be
> inappropriate.
>
Isn't this situation precisely where exceptions are appropriate, rather
than 'drastic'. They're certainly cleaner than any other mechanism.
Ian
Navigation:
[Reply to this message]
|