[Qt5-feedback] new Qt5 - great! - but: What about exceptions?
Дима
Dimanne at yandex.ru
Sat May 14 08:07:47 CEST 2011
For your info
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=Exceptions#Exceptions
exceptions is very bad idea
13.05.2011, 23:02, "szyk100" <szyk100 at o2.pl>:
> 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
> _______________________________________________
> Qt5-feedback mailing list
> Qt5-feedback at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback
More information about the Qt5-feedback
mailing list