Should the comma operator be removed in D2?
Ellery Newcomer
ellery-newcomer at utulsa.edu
Mon Nov 16 15:08:58 PST 2009
dsimcha wrote:
>
> Axe. Looks like the only things it's good for are making code undreadable and
> abusing for loop syntax to...
>
> Make code unreadable.
>
> When the heck would this be significantly more readable, safer, or more concise
> than doing the equivalent without it? Also, from previous discussions I vaguely
> remember it's constraining other parts of the syntax.
I've used them occasionally with regard to ref parameters
Object foo(Object bar, ref bool flag);
while( guard(bizz) && (fizz = foo(bizz,ok), ok)){}
although I suppose it doesn't score so highly on the readable scale..
More information about the Digitalmars-d
mailing list