[OT] Sharp Regrets: Top 10 Worst C# Features

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Thu Aug 20 14:16:39 PDT 2015


On 8/19/2015 3:09 AM, Chris wrote:
> #3 Here we go again... I wonder what's the problem with this. I still think it's
> a very handy shorthand for cumbersome `x = x + 1` or even `x += 1`. And no, it's
> not confusing, because it is well defined as incrementing the value by 1. In
> fact, I don't like Python's patronizing insistence in having to write `x = x + 1`.

x=x+1 has further problems if x has side effects.



More information about the Digitalmars-d mailing list