3 ms·
> The string conversion issue was brought up because I think it is an excellent case of 'programmer knows best', but the exception causes the whole dataset to b
by scotty79 17y ago
> The string conversion issue was brought up because I think it is an excellent case of 'programmer knows best', but the exception causes the whole dataset to be rejected, not just the one record out of 3.9 million that were fine.
The programmer first has to know that he has to make decision what to do with partially wrong input and there is no better way to let him know than throwing exception in his face. Then he will know that there is configuration option that will let him to go around the problem one or other way.
Default option in case of any trouble should be exception bubbling up with information what can be done to avoid it.