[Interest] The willy-nilly deletion of convenience methods (was: Mixing Commercial and Open...)

Thiago Macieira thiago.macieira at intel.com
Thu Mar 25 01:14:17 CET 2021


On Wednesday, 24 March 2021 09:05:50 PDT Giuseppe D'Angelo via Interest wrote:
> >> * I've got a square peg (a QList) and a round hole (an function I made
> >> that takes a QSet), so I need conversions to call it.
> > 
> > And what, exactly, is the solution here? Probably "ranges", but those
> > aren't available yet.
> 
> Not an easy answer, but maybe start not to have functions take/return
> specific containers.

No, there is no answer. You have to choose a container.

Unless you want to go the route of everything-in-the-library-is-inline, which 
makes your compilation times (and your Qt Creator completions, see other 
thread) take 10x longer. That goes against Qt library coding policy, therefore 
is not an option.

So we have to choose one container. That's why we use QList for everything 
sequential, non-associative: it's (now!) usually more than good enough for 
almost all uses.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel DPG Cloud Engineering





More information about the Interest mailing list