[Development] Views in APIs

Matthew Woehlke mwoehlke.floss at gmail.com
Wed May 13 17:27:11 CEST 2020

On 12/05/2020 12.59, Marc Mutz via Development wrote:
> AsidE: If you think that CoW is still a thing today: no. SSO is a thing 
> these days, and it seems that QString will not have it in Qt 6, either. 
> NOI favours SSO, QString-everywhere cements the naïve CoW world of the 
> 1990s for yet another decade.

I am really, *really* sick of this.

Okay, for "most" *strings*, you may have a point. However, CoW is 
*absolutely* still a useful tool for a lot of other applications, and 
will continue to be so; the combination of implicit value semantics and 
"cheap" copies (an atomic increment may be relatively expensive, but so 
are memory allocations, especially for large data structures) is not 
going away any time soon.

Please stop with this crusade of yours to end all CoW, get rid of QList, 
etc. It is misguided and harmful to the ecosystem at large.


More information about the Development mailing list