A Discussion of Tuple Syntax

John Colvin john.loughran.colvin at gmail.com
Tue Aug 20 03:50:05 PDT 2013


On Tuesday, 20 August 2013 at 03:33:51 UTC, Kenji Hara wrote:
> ----
> My opinions agains various syntax proposals:
>
> #(1, "str")
> --> The character '#' is already used for the start of "Special 
> Token
> Sequences"
> http://dlang.org/lex.html#Special Token Sequence
>
> It is recognized in lexing phase, so adding semantic meaning to 
> the '#'
> character would be a contradict of D's principle.
>
> Quote from http://dlang.org/lex.html
> "The lexical analysis is independent of the syntax parsing and 
> the semantic
> analysis."
>
> Kenji Hara


There are various other characters that could be substituted for #
e.g.
&(1, "string")

http://forum.dlang.org/post/cokiixatvjmngggpblma@forum.dlang.org


More information about the Digitalmars-d mailing list