Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-24 Thread Jason H
> Sent: Friday, April 24, 2020 at 4:14 PM > From: "Giuseppe D'Angelo" > To: "Jason H" > Cc: development@qt-project.org > Subject: Re: [Development] Proposal: Deprecate QVector in Qt 6 > > On 4/24/20 9:03 PM, Jason H wrote: > >> In fact, it is-a QList. What's the problem here with its naming? >

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-24 Thread Giuseppe D'Angelo via Development
On 4/24/20 9:03 PM, Jason H wrote: In fact, it is-a QList. What's the problem here with its naming? Because I can't QSringList{"me", "you"}.join() with a QList. I didn't say that it's a typedef for QList, but is-a -- it inherits, precisely to provide that kind of convenience. Thinking out

Re: [Development] Clang-based refactoring to Qt 6 (Proposal: Deprecate QVector in Qt 6)

2020-04-24 Thread Thiago Macieira
On Thursday, 23 April 2020 07:56:57 PDT Vitaly Fanaskov wrote: > 1) Clang cannot compile all Qt-using codebases. Therefore, its tooling > cannot work in all cases either. > That's true, but on the other hand, covering at least a half of code bases > would be a huge progress. I don't have representa

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-24 Thread Jason H
> Sent: Thursday, April 23, 2020 at 12:05 PM > From: "Giuseppe D'Angelo via Development" > To: development@qt-project.org > Subject: Re: [Development] Proposal: Deprecate QVector in Qt 6 > > On 4/23/20 5:04 PM, Julius Bullinger wrote: > > Another suggestion: Get rid if the aliases; use the fully

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-24 Thread Thiago Macieira
On Thursday, 23 April 2020 08:04:27 PDT Julius Bullinger wrote: > And I have to remember if QStringList is the same as as QList, > or if it's actually a different container with a different API. In Qt 5 it is a different type with extra API. In Qt 6, those extra methods should move to an extra ba

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-24 Thread NIkolai Marchenko
> But if the majority thinks that the class name is burned Majority of whom? I am fairly certain most Qt developers either didn't know about QList controversy or didn't care about it enough to consider it in their code. The only people who care are ones in this mailing list most likely. Imo. On F

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-24 Thread Joerg Bornemann
On 4/24/20 18:10, Giuseppe D'Angelo via Development wrote: On 4/24/20 8:57 AM, Joerg Bornemann wrote: Alternatively, proposal 3 (aka "do almost nothing"):   template class QVector { implementation }   template using QList = QVector; No deprecation of QVector. No replacement of QList

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-24 Thread Giuseppe D'Angelo via Development
On 4/24/20 8:57 AM, Joerg Bornemann wrote: Alternatively, proposal 3 (aka "do almost nothing"): template class QVector { implementation } template using QList = QVector; No deprecation of QVector. No replacement of QList with QVector in our API. Rationale: QList is our default se

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-24 Thread Ville Voutilainen
On Fri, 24 Apr 2020 at 13:58, Edward Welbourne wrote: > > Giuseppe D'Angelo (24 April 2020 10:19) asked > >>> Which "one year release approach" are we talking about here? > > On 4/24/20 12:36 PM, Edward Welbourne wrote: > >> That would be Vitaly's proposal to have major releases yearly. > > Giusep

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-24 Thread Ville Voutilainen
On Fri, 24 Apr 2020 at 13:38, Edward Welbourne wrote: > > On 4/23/20 11:10 PM, Vitaly Fanaskov wrote: > >> Moving to one year release approach doesn't equal to make Qt less stable. > > Ville: > > Of course it does, if we now allow API breaks every year. > > Not necessarily: if we *allow* API break

Re: [Development] Clang-based refactoring to Qt 6 (Proposal: Deprecate QVector in Qt 6)

2020-04-24 Thread Matthew Woehlke
On 23/04/2020 15.22, Sérgio Martins via Development wrote: Specially when talking about QList -> QVector, as QVector doesn't guarantee the stability of references due to reallocation. Nor with Qt6 QHash... still waiting to see how much code *that* silently breaks. -- Matthew

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-24 Thread Matthew Woehlke
On 24/04/2020 07.51, André Pönitz wrote: So what is left is the question about what is in the name. That question was interestingly enough not present at the begin of the crusade, it only came up after it turned out that blind replacement of QList by QVector wasn't *that* trivial and actually cau

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-24 Thread Иван Комиссаров
+1 for proposal 3. I don’t see any reason to repeat all the arguments against the original proposal, I cannot agree more. Ivan > 24 апр. 2020 г., в 08:57, Joerg Bornemann написал(а): > > On 4/23/20 15:52, Thiago Macieira wrote: > >>> Proposed: >>> >>> template using QVector = QList; //

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-24 Thread André Pönitz
On Fri, Apr 24, 2020 at 09:33:49AM +0200, Christian Ehrlicher wrote: > Am 24.04.2020 um 09:22 schrieb Lars Knoll: > > > e "vector is a silly name from a mathematical standpoint" argument is > > > valid, > > > but vector is an established term in C++ world. Sorry, that ship has > > > sailed. > > >

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-24 Thread Edward Welbourne
Giuseppe D'Angelo (24 April 2020 10:19) asked >>> Which "one year release approach" are we talking about here? On 4/24/20 12:36 PM, Edward Welbourne wrote: >> That would be Vitaly's proposal to have major releases yearly. Giuseppe D'Angelo (April 24, 2020 12:38) > I must be missing something: how

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-24 Thread Edward Welbourne
Giuseppe said: First and foremost, we have a problem of coding guidelines, which demand simple pluralization of the entity returned, not "List" suffixing: and conforming with that would fix the *List naming problem, so by all means let's do that during the lifetime of Qt6, deprecati

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-24 Thread Giuseppe D'Angelo via Development
On 4/24/20 12:36 PM, Edward Welbourne wrote: Giuseppe D'Angelo (24 April 2020 10:19) asked Which "one year release approach" are we talking about here? That would be Vitaly's proposal to have major releases yearly. I must be missing something: how would that help, regarding the problem at h

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-24 Thread Edward Welbourne
On 4/23/20 11:10 PM, Vitaly Fanaskov wrote: >> Moving to one year release approach doesn't equal to make Qt less stable. Ville: > Of course it does, if we now allow API breaks every year. Not necessarily: if we *allow* API breaks every year *but* are restrained in our use of them - so that, in fa

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-24 Thread Giuseppe D'Angelo via Development
On 4/23/20 11:10 PM, Vitaly Fanaskov wrote: How often do you think we can play this game until people look for something they consider more stable? Moving to one year release approach doesn't equal to make Qt less stable. Which "one year release approach" are we talking about here? T

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-24 Thread Christian Ehrlicher
Am 24.04.2020 um 09:22 schrieb Lars Knoll: e "vector is a silly name from a mathematical standpoint" argument is valid, but vector is an established term in C++ world. Sorry, that ship has sailed. I am also in favor of proposal 2 or 3. I think deprecating either QList or QVector without any big

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-24 Thread Lars Knoll
> On 24 Apr 2020, at 09:11, Oliver Wolff wrote: > > Hi > > On 24.04.2020 08:57, Joerg Bornemann wrote: >> On 4/23/20 15:52, Thiago Macieira wrote: Proposed: template using QVector = QList; // mark deprecated template class QList { $(implementation to be moved); }

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-24 Thread Oliver Wolff
Hi On 24.04.2020 08:57, Joerg Bornemann wrote: On 4/23/20 15:52, Thiago Macieira wrote: Proposed: template using QVector = QList; // mark deprecated template class QList { $(implementation to be moved); } Proposal 2: template class QList { $(implementation to be moved);