Comma operator = broken design
bcs
bcs at example.com
Wed Dec 7 20:52:22 PST 2011
On 12/07/2011 08:49 AM, Alex Rønne Petersen wrote:
> I really do not see the value in allowing such syntax in the first
> place. I've been told that one argument was that generated code might
> use it, but I have no idea why it would be needed. Furthermore, this
> operator makes it very hard to introduce Python-style tuples in the
> language.
IIRC the generated code argument was actually made with regards to the
compiler doing internal rewriting of the AST. If I'm remembering
correctly, this make it even weaker as, at that point, there is no
reason that the form of the AST need match the syntax.
More information about the Digitalmars-d
mailing list