[OT] Sharp Regrets: Top 10 Worst C# Features
via Digitalmars-d
digitalmars-d at puremagic.com
Wed Aug 19 06:19:25 PDT 2015
On Wednesday, 19 August 2015 at 13:02:50 UTC, Chris wrote:
> Yes, I forgot, it does. But why not `x++`? I never understood
> why. As if most people were too stoooopid to grasp the concept
> that `x++` is the same as `x += 1` (which is intellectually as
> 'challenging' as `x++`, by the way).
I don't know, and I seldom miss it, but I guess one reason could
be that you would have to define what "1" is for non-real types.
x--/x++ should be more like pred(), succ() on enumerations?
e.g.:
month = JAN;
month++; // FEB
> farge / farve / färg / Farbe - still the same thing ;)
:)
More information about the Digitalmars-d
mailing list