[Development] QList

Thiago Macieira thiago.macieira at intel.com
Mon Mar 20 16:36:20 CET 2017


On segunda-feira, 20 de março de 2017 01:09:57 PDT Marc Mutz wrote:
> It's a fallacy to think that there's a lot of need to return a shared
> collection from APIs. Either you create the collection on request, then an
> exclusive collection would be preferable, as returning it from a function is
> free[1], or you "return" internal state, in which case returning some form
> of view (incl. the case of simply adding begin()/end()) would be the way to
> go (cf. https://codereview.qt-project.org/150658).

We disagree and clearly I don't think it's a fallacy.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list