On Mon, Sep 13, 2021 at 09:56:23AM +0200, Ulf Hermann wrote:
However, if we nail down the meaning of @"string" to "create and
resolve a URL", then we cannot use a plain '@' for much else.

it would be kinda logical for @ applied to a structure to mean resolving
all urls inside it, which would be a clear clash with
https://bugreports.qt.io/browse/QBS-58 (i was once told that this would
be interesting for declaring state machines in quick as well).

the @ is about the only punctuation char that has no syntactical meaning
in js (or at least didn't when i checked last time), so it does seem
perfect for language extensions, and therefore a waste to use for just
a single thing.

specifically for urls, one could do something more extreme to limit the
impact on the "syntax space", e.g., use @<url>, i.e., replace the
quotation chars as well. of course, this may be even more confusing for
tooling that doesn't natively speak the new qml version.
_______________________________________________
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to