Should we deprecate comma?
Marc Schütz" <schuetzm at gmx.net>
Marc Schütz" <schuetzm at gmx.net>
Mon Mar 24 05:21:03 PDT 2014
On Monday, 24 March 2014 at 04:04:55 UTC, Andrei Alexandrescu
wrote:
> On 3/23/14, 8:22 PM, Etienne Cimon wrote:
>> How about allowing it only inside parenthesis?
>
> That works but breaks more valid code. -- Andrei
I don't think so. Tuple literal syntax would presumably use
parenthesis:
int i;
float j;
(i, j) = func_returning_tuple();
auto (a,b,c) = another_func();
(x, y) = (y, x);
Keeping the operator inside parentheses would therefore kill
these options.
More information about the Digitalmars-d
mailing list