Can't it be alleviated/improved by providing user-defined literal for
QString(Literal)? So that one would only write   a["b"_qs] = "c"_qs.

чт, 22 авг. 2019 г. в 21:57, André Pönitz <apoen...@t-online.de>:

> On Thu, Aug 22, 2019 at 08:48:30PM +0200, André Pönitz wrote:
> > On Thu, Aug 22, 2019 at 05:39:07PM +0200, Mutz, Marc via Development
> wrote:
> > > I'm sorry if I sound blunt, but this is just nonsense. What you call
> > > optimisation, isn't. Using QStringLiteral or QLatin1String is equally
> > > readable. As is just using "".
> >
> > I am not sorry to sound blunt here, but calling
> >
> >      a["b"] = "c"
> >
> > "equally readable" to
> >
> >      a[QStringLiteral("b")] = QStringLiteral("c")
> >
> > requires a kind of proficiency that's rare to find in real life.
>
> And to make it clear: I am not that proficient. To me the second version is
> 70% line noise and I in ordinary cases I happily pay cycles to have not to
> write or read that.
>
> Andre'
> _______________________________________________
> Development mailing list
> Development@qt-project.org
> https://lists.qt-project.org/listinfo/development
>
_______________________________________________
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to