[Development] QList
Philippe
philwave at gmail.com
Fri Mar 31 10:34:54 CEST 2017
On Fri, 31 Mar 2017 11:12:44 +0300
Konstantin Tokarev <annulen at yandex.ru> wrote:
> 30.03.2017, 17:33, "Matthew Woehlke" <mwoehlke.floss at gmail.com>:
> > On 2017-03-29 18:33, Konstantin Tokarev wrote:
> >> 30.03.2017, 00:17, "Philippe" <philwave at gmail.com>:
> >>> And being able to use a QVector with O(1) by-value assigment, thanks to
> >>> COW, make it easy to use QVectors "as primitive types", with no
> >>> reasonning effort.
> >>
> >> With move semantics you can achieve this without CoW in a more explicit way
> >
> > I don't think we all agree that "in a more explicit way" is a *feature*.
>
> Go write code in JS then. It manages even more things implicitly than just lifetime of your
> data objects, and has much less syntactic overhead.
You quote an extreme case with JS.
Software development is all about tradeoffs...
Qt has put so far the convenience cursor to the right place, IMHO.
I will even say this is the number #1 quality of Qt.
Philippe
More information about the Development
mailing list