阅读背景:

Non-Nullable Types vs C#: Fixing the Billion Dollar Mistake (转载)

来源:互联网 

One of the top suggestions (currently #15 on uservoice) for improving C# is the addition of non-nullable reference types. This is not surprising, considering the number of functions that start with a block of ‘if (x == null) throw new ArgumentNullException(“x”)’ lines. Not to mention the head-slapping bugs null pointers cause. There’s a reason Tony Hoare calls the null pointer his billion dollar mistake.One of the top suggestions (currently #15 on us




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: