[Qt5-feedback] new Qt5 - great! - but: What about exceptions?
szyk100
szyk100 at o2.pl
Fri May 13 21:02:30 CEST 2011
Hi all
One of modern languages feature included in C++ are exceptions.
Exceptions have mainly one advantage and only one real disadvantage.
Advantage is: clear separation "fast path" and error handling - for me
this is huge advantage and I realy like this feature. It is the same big
leap in programming as invention "code modularization" concept. I
suppose you think "who care about some excepitons", but we have only few
modern concepts in C++ and rule "full backward compatibility" stops many
great innovations (see: D or Python language features for comparision).
Ignoring such great feature as C++ exceptions is ununderstandable
self-limitation.
The only real disadvantage you (Trols) mentioned some where on your
pages is that executables will grow 20% with exceptions enabled. But as
you known during last 6 years drives and memory modules grown enormusly.
And I suppose that situation is similiar like with OpenGL - this is very
common and maybe limited devices will disappear quickly from the market.
Other your argument (but emotional in this case) was "historical
reasons" for not using exceptions. If we will still thinking like that
we could not using C++ for historical reasons (WinApi and Xapi or OpenGL
api) and stay with raw C language. With argument like that we can even
stay away from concrete and steel and using only stone and wood just
"for historical reasons".
thanks for reading and considering
Szyk
More information about the Qt5-feedback
mailing list