[Interest] QByteArray vs QString, arg, why is there no arg()?
thiago.macieira at intel.com
Wed Sep 18 17:13:55 CEST 2019
On Wednesday, 18 September 2019 06:57:11 PDT Jason H wrote:
> I do prefer python's approach where the character size change does not come
> with an API change. Maybe discussion for Qt6?. I would think they C++ way
> would be to have 1 API and a template class? (Though I think some people
> cringe at that idea)
No, that's not going to happen because templates are not magic. It would mean
increasing the size of the library so we support both types of string
formatting. That's also why we don't have arg() today in QByteArray.
The new std::format-like API that is being developed will likely be QString
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel System Software Products
More information about the Interest