On 04/01/2012 06:04 PM, joao.abeca...@nokia.com wrote: > The first one introduces a Q namespace, which replaces the Q prefix in > Qt5. The second patch drops the prefix in class names. This brings the > C++ API more in line with the QML/JavaScript one and will hopefully help > move all remaining C++ developers to JavaScript.
I'm not sure what you mean by "move all remaining C++ developers to JavaScript" -- I would rather move to another toolkit than to JS. IMHO, a clean QML programming style is when the Javascript expressions are so clean and simple that one doesn't need to know that it's Javascript. I certainly wouldn't write the application logic in JS. As far as the Q namespace is concerned, I'm very much against the change. If this were the first release of Qt, then I might be fine with it, but with all the Qt-based applications out there I think this is not wise. I understand that Qt 5 is not meant to be source compatible with Qt 4, but this change sounds like "let's ruin everyone's life just because we can". I'm writing some Qt code that I hope to run with minimal adjustments on devices on which Qt 4.x is installed and on future devices running 5.0; this change would just make it nearly impossible, for a very uncertain benefit. And the "Q" prefix is so tiny and cute, that I honestly prefer writing "QSize" than "Q::Size" ("using namespace Q" is very likely going to cause conflicts with other classes of mine). > Still pending are patches to: > [...] > - rename the Q::Qt namespace to Q::t urgh... > While we're at this, it would be good to improve our interoperability > with C++11. I have another patch in the works that drops camelCase, in > favor of the standardized names_with_underscores. The extra separation > between words will be welcomed by those of us that use small fonts and > ALL-CAPS editors. Damn, you fooled me. :-) I was about to ask you how this would help "interoperability", and was going to write that this sounds like a joke, when I realized what date it is today. :-) However, since I cannot rule out for sure that you are not joking, I'll keep the upper part of my angry e-mail, just in case. :-D Ciao, Alberto -- http://blog.mardy.it <- geek in un lingua international! _______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development