News for hackers. Stuff that matters.
Re:Show HN: C# 6.0 Functional Language Extensions by infogulch on Wednesday November 19, 2014 @02:02PM (#8631903)
From the article:

> Option<T> works in a very similar way to Nullable<T> except it works with all types rather than just value types. It's a struct and therefore can't be null.

Re:Show HN: C# 6.0 Functional Language Extensions by louthy on Wednesday November 19, 2014 @02:09PM (#8631961)
Exactly. Option<T> has a implicit conversion operator that converts a type of T to Option<T>. So passing T to the function constructs a new Option<T>, and the constructor checks for null. It's also likely (though not guaranteed) that the Option<T> will be allocated on the stack, and should therefore not pose too much of an overhead.
Re:Show HN: C# 6.0 Functional Language Extensions by bcbrown on Wednesday November 19, 2014 @02:50PM (#8632195)
Awesome.