The Comma Operator's Deprecation Can't Come Soon Enough

sigod via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 23 10:59:41 PDT 2014


On Wednesday, 23 July 2014 at 17:25:43 UTC, Yota wrote:
> It appears Microsoft is musing the idea of adding this operator 
> to C# and VB.Net.  Only instead of it being a comma, they're 
> going with a semicolon.
> https://roslyn.codeplex.com/wikipage?title=Language%20Feature%20Status&referringTitle=Documentation
>
> I dislike the comma operator as well, but would there be any 
> problems if it were a semicolon instead?  I think the new 
> symbol would fit well in for() loops.

`(var x = Foo(); Write(x); x * x)`

Looks kinda strange.


More information about the Digitalmars-d mailing list