4 ms·
C# - Add Discriminated Unions and a Maybe / Optional type and F# style records. C# - I'd remove null propogation, I'm sick of seeing code like this now foo?.Ba
by LandR 8y ago
C# - Add Discriminated Unions and a Maybe / Optional type and F# style records.
C# - I'd remove null propogation, I'm sick of seeing code like this now
foo?.Bar?.FirstOrDefault(x => x?.Quax?.Something == y?.Something).DoStuff();
We have someone here now who just makes all null reference exceptions go away by appending a ? to every call!!!
Drives me nuts.