Re: [Development] Qt UDL operators

2022-04-06 Thread Giuseppe D'Angelo via Development
Hi, On 05/04/2022 14:28, Sona Kurazyan wrote: I'm not sure how this work: unless the new _s takes another kind input (e.g. number literals), you can't add it no matter what, as users under "using namespace Qt;" would then get a conflict...? Right, it will work only if the types of the literals

Re: [Development] Qt UDL operators

2022-04-05 Thread Sona Kurazyan
Hi, > From: Giuseppe D'Angelo > > Hi, > > Il 04/04/22 15:53, Sona Kurazyan ha scritto: > > I see two main issues with keeping both: > > > > - If we want to add UDLs with same names for different domains in future, > adding the "q"-prefixed counterparts will be problematic. For example, let's >

Re: [Development] Qt UDL operators

2022-04-04 Thread Giuseppe D'Angelo via Development
Hi, Il 04/04/22 15:53, Sona Kurazyan ha scritto: I see two main issues with keeping both: - If we want to add UDLs with same names for different domains in future, adding the "q"-prefixed counterparts will be problematic. For example, let's say we want to add Qt::inline Literals::inline Other

Re: [Development] Qt UDL operators

2022-04-04 Thread Sona Kurazyan
e, it might be confusing for users. Best regards, Sona > -Original Message- > From: Development On Behalf Of > Giuseppe D'Angelo via Development > Sent: Monday, April 4, 2022 3:22 PM > To: development@qt-project.org > Subject: Re: [Development] Qt UDL operators

Re: [Development] Qt UDL operators

2022-04-04 Thread Giuseppe D'Angelo via Development
Il 30/03/22 15:44, Sona Kurazyan ha scritto: # keep _qs, _qba, add _qL1, keep Qt::StringLiterals::_L1, add Qt::StringLiterals::{_s, _ba} (https://codereview.qt-project.org/c/qt/qtbase/+/402948 + https://codereview.qt-project.org/c/qt/qtb

Re: [Development] Qt UDL operators

2022-04-04 Thread Sona Kurazyan
lopment On Behalf Of > Thiago Macieira > Sent: Sunday, April 3, 2022 4:05 PM > To: development@qt-project.org > Subject: Re: [Development] Qt UDL operators > > On Saturday, 2 April 2022 07:46:33 PDT Kai Köhne wrote: > > If you use the "Qt Quick Application" wizard in

Re: [Development] Qt UDL operators

2022-04-03 Thread Thiago Macieira
On Saturday, 2 April 2022 07:46:33 PDT Kai Köhne wrote: > If you use the "Qt Quick Application" wizard in any recent Qt Creator, and > selected a Qt 6 version as minimally required version, the generated > main.cpp code will contain code like > > const QUrl url(u"qrc:/myproject/main.qml"_qs); >

Re: [Development] Qt UDL operators

2022-04-02 Thread Kai Köhne
> From: Development On Behalf Of Sona > Kurazyan > Sent: Wednesday, March 30, 2022 3:44 PM > To: Marc Mutz ; development@qt-project.org > Subject: [Development] Qt UDL operators > > [...] > As you can see, https://codereview.qt-project.org/c/qt/qtbase/+/401604 raised &g

[Development] Qt UDL operators

2022-03-30 Thread Sona Kurazyan
Hi, I'd like to continue the discussion started by Marc and try to find out what should be the "fate" of our literal operators. For the reasons explained by Marc, we've added _L1 to Qt::inline Literals::inline StringLiterals namespace, but we still have the literals operators _qs (for QString)