DEV Community

Discussion on: Eliminating Nulls in C# with Functional Programming

Collapse
 
akashkava profile image
Akash Kava

Checking for null is simple step, always marshaling Option is exactly same with few additional lines of code. I never had problem with null, because exception can halt further processing.

In this case, entire chain needs to have special line case of None, and another problem is digging root cause of what failed could be nightmare as you have no idea whether method returned a default or something went wrong.

Thread Thread
 
integerman profile image
Matt Eland

I really love the conversations this thread sparked. I'm really enjoying seeing the perspectives the community has to bring on quality in general.