On Tuesday 26 November 2013 10:43:24 Mateusz Loskot wrote: > On 26 November 2013 10:10, Tobias Hunger <[email protected]> wrote: > > * Please make sure to follow the coding style. > > http://doc-snapshot.qt-project.org/qtcreator-extending/coding-style.html > > has the details. > > (...) > > There usually are lots of misplaced * and & chars in newly > > submitted code, too. > > Or, one day, Qt will drop its C with classes heritage > and allow folks to apply C++ semantic and emphasize actual type > instead of syntax of declaration as C folks do. That isn't the reason. The reason is that it makes the * or & stand out more. Humans pay more attention to the first character of a word thatn to the last one. So putting the *, & in front of a word instead at the end increases readability. Since the qt coding style strongly advises against putting multiple variable declarations on one line, there's also no draw back to that.
daniel _______________________________________________ Qt-creator mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/qt-creator
