|
|
Ian Thomson wrote on Wednesday, June 30, 2010 10:32 AM:
> ...
> do
> {
> if (dlg.exec() != QDialog::Accepted)
> return;
> } while (dlg.somethingIsWrong());
I consider "hidden" return statements in the middle of the code almost equally
as bad as "goto": Murphy's Law dictates that during the lifetime of such a
method Joe Programmer will add "important cleanup code" at the end of that
method ;)
Yay, another code style discussion ;)
Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
_______________________________________________
Qt-interest mailing list
Qt-interest@xxxxxxxxxxxxx
http://lists.trolltech.com/mailman/listinfo/qt-interest
|
|