Feature or bug: print braces

Dennis Ritchie via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed May 13 17:39:24 PDT 2015


On Thursday, 14 May 2015 at 00:33:33 UTC, Brian Schott wrote:
> You told it to output a function literal, so it did.

Yes, but it would be logical to deduce something like:
-----
writeln({}); // prints literal[{}]

Or the compiler will not be able to distinguish the literal from 
the ordinary function arguments?


More information about the Digitalmars-d-learn mailing list