News for hackers. Stuff that matters.
Re:C# Pattern Matching by BoorishBears on Wednesday February 05, 2020 @01:08AM (#22244408)
Unity used to take advantage of overloading to implement null checking with "sentinel values" representing a non-existent reference in the Editor

I found this post explaining they considered moving away from the pattern, but I'm not sure if they followed through:

https://blogs.unity3d.com/2014/05/16/custom-operator-should-...

Re:C# Pattern Matching by marijnz on Wednesday February 05, 2020 @01:47AM (#22244576)
They didn't move away from the pattern and can't anymore as it would break almost every existing Unity project.
Re:C# Pattern Matching by sedatk on Wednesday February 05, 2020 @01:40AM (#22244553)
Yeah that means OP’s advice would actually break the code written for unity.