Increment / Decrement Operator Behavior

Xinok xinok at live.com
Mon Jun 4 17:41:24 PDT 2012


On Monday, 4 June 2012 at 20:44:42 UTC, bearophile wrote:
> 1) Make post/pre increments return void. This avoid those 
> troubles. I think Go language has chosen this. This is my 
> preferred solution.
I wonder in that case, is it even worth including in the 
language? For me anyways, the whole point of these operators is 
to use them in expressions. Otherwise, why not simply write 
(i+=1)?


More information about the Digitalmars-d mailing list