Coherence 3.0 glimpse The E Language
Feb 03

.NET Nullable Trilogy

Tech Add comments

Luca Bolognese has put up a three part series on .NET’s Nullable<T>.

In his posts he describes the reasons behind three design choices:

  1. Why not just use SQL semantics for null?
  2. Why null == null doesn’t imply null >= null and null <= null?
  3. Why inside a generic class with a type parameter t the expression t == null will return false, when t is a nullable type and the value of it is null.

Part One: Why not just SQL?

Part Two: a == b -> a>=b && a <=b ?

Part Three: Nullable as type parameter in a generic class

Will Java have a Nullable?

2 Responses to “.NET Nullable Trilogy”

  1. Anonymous Says:

    What’s the #1 most thrown exception?

    NullReferenceException.

    NonNullable would be FAR more valuable. Not to say I don’t appreciate the effort behind Nullable because I do, but we’re still not fixing the real problem.

  2. Anonymous Says:

    What’s the #1 most thrown exception?

    NullReferenceException.

    NonNullable would be FAR more valuable. Not to say I don’t appreciate the effort behind Nullable because I do, but we’re still not fixing the real problem.

Leave a Reply

Spam is a pain, I am sorry to have to do this to you, but can you answer the question below?

Q: What is the number before 3? (just put in the digit)