[nem-en] The ReportFatal problem

vc vc at rsdn.ru
Tue Feb 13 04:36:17 CET 2007


> The fact that it throws exception allows us not to return value from a
> function, when there is some error. It is sometimes the case that
> there is no reasonable value to be returned in case of error, more
> often it is just laziness.

I understand, but in many cases we can retudn (P/T)Expr.Error() ort so on.

> The other thing is that throwing exception allows us to catch it some
> levels up, to skip presenting errors in the same line of code over and
> over again.

Application logic on exception? In my option it is bad practices.

> > Whether it is possible to refuse from ReportFatal?
> 
> So it's probably possible to easily remove it from most places, and
> with some effort from others.

It will be nice. 




More information about the devel-en mailing list