[Development] RFC: Proposal for a semi-radical change in Qt APIs taking strings

André Somers andre at familiesomers.nl
Tue Oct 20 08:49:17 CEST 2015


Op 19-10-2015 om 17:54 schreef Thiago Macieira:
> First of all, QStringRef keeps a pointer to the original QString, so it isn't
> as fragile as QStringView. In fact, during the development of the XML stream
> classes, there was a QSubString class that did more or less what QStringView
> would do. It got replaced for a reason.
Would you mind expanding on that a bit? I would think that the XML 
stream classes would be a natural example to use a string view, but it 
seems that such a thing was tried and dragons were uncovered... Perhaps 
it would be good to share a war story here so we won't run into those 
same dragons again?

André





More information about the Development mailing list