[Development] Introducing discussion about QStringFormatter
Thiago Macieira
thiago.macieira at intel.com
Thu May 18 18:20:39 CEST 2017
On Thursday, 18 May 2017 02:39:36 PDT MÃ¥rten Nordheim wrote:
> > Please consider, in terms of Qt API design (ease of use, surprise factor,
> > etc.) just what the following should do:
> >
> > QStringFormatter("%1 is {1}").arg("foo").subs("bar")
>
> Hm, hadn't thought that far ahead, thanks. I guess that would be hard to
> guess without reading the docs. In this case a constructor parameter is
> the better choice for BC.
That's exactly my point: please think of what would be the least surprise.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Development
mailing list