[Issue 14073] Allow token strings to use other types of brackets as delimiters
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Jan 28 15:05:35 PST 2015
https://issues.dlang.org/show_bug.cgi?id=14073
Vladimir Panteleev <thecybershadow at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |thecybershadow at gmail.com
--- Comment #4 from Vladimir Panteleev <thecybershadow at gmail.com> ---
> 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.
--
More information about the Digitalmars-d-bugs
mailing list