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

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Sun Oct 18 21:27:31 CEST 2015


Il 18/10/2015 20:30, Smith Martin ha scritto:
> After watching the video on string_view, it seems clear we have to offer a QStringView, so I don't see what is "semi-radical" about your proposal.

That the proposal is that every single function currently taking a 
QString should instead be changed to take a QStringView instead, unless 
a few exceptional cases (for instance the function is used to store the 
string somehow, plus other cases under discussion). Similar case for 
return values. If that doesn't look like a radical change to you...

Cheers,
-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Software Engineer
KDAB (UK) Ltd., a KDAB Group company | Tel: UK +44-1625-809908
KDAB - The Qt Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4068 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/development/attachments/20151018/fb721aae/attachment.bin>


More information about the Development mailing list