关于[7 ways to improve code quality in c# using option type]的摘要:
Option is relatively new for imperative programming (c#, java, …) developers also it is now a primitive type in some of these multiparadigm languages like java it is not yet natively supported in C#. I think the biggest misunderstanding regarding option type came from it is similarity was the nullable type. you will find a lot of online articles presenting Option type as a safer alternative to the nullable type or as a final solution to NullReferenceException while other material defends Nullable and say that option type is not the way to go as it simply replaces NullReferenceException with MissingValueException. Here we will show you how to use Option Type Correctly and how it will improve your code dramatically and prevent some potential bugs.
原文地址: https://medium.com/@csharpwriter/7-ways-to-improve-code-quality-in-c-using-option-type-312e39035c1a