News for hackers. Stuff that matters.
Re:C# Hidden Optimizations by mullr on Tuesday October 12, 2010 @03:04AM (#1782577)
C# has || just like any other language, but objects aren't truthy and nulls aren't falsy. This was a good design decision, since it catches the common = vs. == error if(a=b) while doing the type check rather than silently doing the (probably) wrong thing. As a consequence, the || doesn't work as it does in other places. Hence ??.
Re:C# Hidden Optimizations by steverb on Tuesday October 12, 2010 @09:21AM (#1783224)
?? is the null coalescing operator and it's neither new nor is it hidden.

It is damned handy though.