[nem-en] Re: The ReportFatal problem

Michal Moskal michal.moskal at gmail.com
Tue Feb 13 11:50:44 CET 2007


On 2/13/07, Vladimir Reshetnikov <V.Reshetnikov at gmail.com> wrote:
> vc <vc <at> rsdn.ru> writes:
>
> > > 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.
> >
>
> If a situation prevents a normal algorithm flow from being continued, it is
> quite reasonable to throw an exception and catch it somewhere at the top level.
> It is much more clearly then raising a lot of flags.

Exectly. And performance is not a problem here, since we're not going
to signal thousands of errors during a single compilation... well...
at least we weren't, but now with intelli sense I'm not so sure.

-- 
   Michał


More information about the devel-en mailing list