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 _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
