Comma operator = broken design

Tobias Pankrath tobias at pankrath.net
Fri Dec 9 05:38:06 PST 2011


Timon Gehr wrote:

> It is confusing to people who don't know the language. It is a simple
> construct. In my experience, it is certainly not error prone. If you are
> aware that such an operator exists.

It may not be error prone to write, but it is error prone to read, because
the comma-operator tends to hide in the language noise produced by all those
brackets, semicolons, commas, parenthesis and curly braces.

I don't like it, if I have to be uber careful when reading trivial code.


More information about the Digitalmars-d mailing list