News for hackers. Stuff that matters.
Re:John Carmack on Mutable Variables by skeezyjefferson on Friday October 31, 2025 @09:39AM (#45771865)
> In your sample there really is no benefit to using the "is" operator over just checking for null

Microsoft give the same example though. I understand what hes saying, theres conceptual overlap between is and ==. Many ways to do the same thing.

Why couldnt it just be...

if (obj == string s) { ... }

There are no comments on this comment yet.