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.
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 whethermethod returned a default or something went wrong
.I really love the conversations this thread sparked. I'm really enjoying seeing the perspectives the community has to bring on quality in general.