Re: Proposal: make Glib::KeyFile easier to use
- From: Povilas Kanapickas <povilas radix lt>
- To: gtkmm-list gnome org
- Subject: Re: Proposal: make Glib::KeyFile easier to use
- Date: Sat, 28 Dec 2013 00:01:50 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]