[Development] qsizetype and classes working with QStrings or QList
Ville Voutilainen
ville.voutilainen at gmail.com
Mon Aug 24 14:49:21 CEST 2020
On Mon, 24 Aug 2020 at 15:37, Christian Kandeler
<christian.kandeler at qt.io> wrote:
> > I don't have verifiable evidence examples, but the gist of it is this:
> >
> > ConcreteType x = foo(); // this detects API breaks right here, right now
> > ...
> > ...
> > ...
> > some_use_of(x);
> >
> > With AAA, this might become
> >
> > auto x = foo(); // this always compiles
> > ...
> > ...
> > ...
> > some_use_of(x); // you may detect an API break here, or somewhere deep
> > inside some_use_of
> >
> > I wonder where the verifiable evidence is that AAA works at scale.
>
> What about:
>
> some_use_of(foo());
>
> Are you suggesting that this is an anti-pattern?
I fail to see where I might have suggested such a thing. That sort of
uses are unaffected by whether
an API user does or does not buy into AAA. They certainly are another
way to detect (or suffer from)
an API break, and trying to use more auto doesn't solve it.
More information about the Development
mailing list