Den 01-05-2012 10:45, André Somers skrev: > My gut feeling is, that += is just wrong in terms of declarative > programming. It has a destinctive imparative feel to it.
That was *exactly* my instant reaction. And here's the reason (I think): The idea with the bindings is that they automatically update to whatever the targets are. So doing this: p1: p2 + p3 is fine. Now, if you do this instead: p1 += p2 Or if you convert it: p1: p1 + p2 What does that mean? Should p1 add p2 everytime p2 changes? What would the base value be? And you can go on with the questions. I can't see a single good definition of this in declarative code. += doesn't make any sense here. It's for the javascript code only. Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http://www.fioniasoftware.dk _______________________________________________ Qt-qml mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-qml
