Should the comma operator be removed in D2?
Robert Jacques
sandford at jhu.edu
Mon Nov 16 18:35:08 PST 2009
On Mon, 16 Nov 2009 17:53:45 -0500, Stewart Gordon <smjg_1998 at yahoo.com>
wrote:
> dsimcha wrote:
> <snip>
>> Axe. Looks like the only things it's good for are making code
>> undreadable and
>> abusing for loop syntax to...
>> Make code unreadable.
> <snip>
>
> Suppose you want the increment of a for loop to change two variables in
> parallel. I don't call that making code unreadable.
>
> Stewart.
Yes the classic use case of the comma operator is multi-variable
declarations/increments in a for loop.
More information about the Digitalmars-d
mailing list