https://issues.dlang.org/show_bug.cgi?id=14073

Vladimir Panteleev <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #4 from Vladimir Panteleev <[email protected]> ---
> There is no ambiguity here lexer-wise as far as I know, as the q signifies
> that either a token string or a delimited string follows. 

This is incorrect:

    enum q = 5;
    enum arr(int x) = new int[x];
    auto r = arr!q[3];

Same with q().

> Which I subjectively believe looks better and is more readable. 

Even without ambiguity issues, I think this is not a strong enough argument to
justify the added complexity for all the tools out there that have to process D
source code (compilers, linters, formatters, syntax highlighters, etc.)

I would say that D has enough kinds of string literals.

--

Reply via email to