[Development] HEADS-UP: QStringLiteral

Tor Arne Vestbø Tor.arne.Vestbo at qt.io
Wed Aug 21 17:18:08 CEST 2019



> On 21 Aug 2019, at 16:55, Thiago Macieira <thiago.macieira at intel.com> wrote:
> 
> On Wednesday, 21 August 2019 07:47:23 PDT Thiago Macieira wrote:
>> On Wednesday, 21 August 2019 03:01:29 PDT Tor Arne Vestbø wrote:
>>> This should just be test[“key”] = “value”. How do we get there?
>> 
>> Do you mean "make this the most optimal?" If so, then we don't get there.
>> It's not possible.
> 
> Oh, the following is nearly the most optimal:
> 
> 	test[u"key"] = u"value”;

So that would be utf16, can’t we let test["key"] = “value” assume utf8, ie u8”foo” without the explicitness?

Tor Arne 


More information about the Development mailing list