On 12/27/2013 09:42 PM, Aurimas Cernius wrote:
>
> Expected failure is still a failure and can drop code
> execution to error handling code. Reporting potentially non-fatal
> error as exception is not ideal of course, but definitely possible.

I can't agree with you on this point. Using exceptions for expected
failures is simply wrong; it is an widely recognized anti-pattern. It's
not an accident all prominent C++ experts advice against this practice.
Plenty of rationale is singel Google query away, e.g. [1][2][3][4]. If
you want, you can find a lot more.

[1]: c2.com/cgi/wiki?DontUseExceptionsForFlowControl
[2]: stackoverflow.com/questions/1744070
[3]: stackoverflow.com/questions/729379
[4]: programmers.stackexchange.com/questions/189222

Regards,
Povilas


_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to