News for hackers. Stuff that matters.
Re:Exploring the C# 6 Null Propagation Operator by justthistime_ on Sunday April 19, 2015 @02:55PM (#9404306)
Scala encourages people to not use nulls everywhere, so adding syntactic sugar for a special case, which is not even idiomatic Scala doesn't sound like a good idea.

Option is not a "replacement" for null. Sometimes another type is more appropriate to replace a usage of a null in Java/C#, so making Option special would be counter-productive.

Re:Exploring the C# 6 Null Propagation Operator by acjohnson55 on Monday April 20, 2015 @12:51AM (#9406243)
I wouldn't use null anywhere in my Scala code, unless I had to in order to interface with a Java library. I'm talking about sugar for working with Option.
Re:Exploring the C# 6 Null Propagation Operator by justthistime_ on Monday April 20, 2015 @08:38AM (#9407601)
Where would this sugar stop? At Either? At Try? At Validation?

The problem is that if you introduce the sugar only for Option, users will tend to use Option even in cases where other type constructors would be more appropriate.