Should we deprecate comma?

Steve Teale steve.teale at britseyeview.com
Tue Mar 25 05:43:06 PDT 2014


On Monday, 24 March 2014 at 10:57:45 UTC, Regan Heath wrote:
> On Sun, 23 Mar 2014 20:56:25 -0000, Andrei Alexandrescu 
> <SeeWebsiteForEmail at erdani.org> wrote:
>> Discuss: 
>> https://github.com/D-Programming-Language/dmd/pull/3399
>
> Would it have any effect on:
>
> int *p, q;
>
> R

I presume that

for (int i = 0, j = m;;) {}

Is in the same category?

The only place I have tended to use the comma operator is in 
ternary expressions

bool universal;

atq = whatever? 0: universal = true, 42;


More information about the Digitalmars-d mailing list