On 31.05.23 16:05, Thiago Macieira wrote:
> [...] Therefore, if
> your function isn't named after a verb in the imperative, then it should be
> const QString &.

Function names have nothing to do with it: `fromString(~~stringish~~)` 
is a dead-sure candidate for QAnyStringView while 
`operator[](~~stringish~~)` doesn't even have a name as such.

-- 
Marc Mutz <marc.m...@qt.io>
Principal Software Engineer

The Qt Company
Erich-Thilo-Str. 10 12489
Berlin, Germany
www.qt.io

Geschäftsführer: Mika Pälsi, Juha Varelius, Jouni Lintunen
Sitz der Gesellschaft: Berlin,
Registergericht: Amtsgericht Charlottenburg,
HRB 144331 B

-- 
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to