[article] Language Design Deal Breakers

Timon Gehr timon.gehr at gmx.ch
Sat May 25 18:50:55 PDT 2013


On 05/26/2013 03:37 AM, bearophile wrote:
> Timon Gehr:
>
>>> Even if it's not a big problem, in the end this problem is now "solved",
>>> because all new languages (Scala,
>>
>> scala> val s : String = null;
>> s: String = null
>> scala> s(0)
>> java.lang.NullPointerException
>
> Thank you. Are nulls used in Scala outside the strict needs of
> interacting with Java libraries?
>
> Bye,
> bearophile

I'd assume it is more idiomatic to use explicit option types. In any 
case, Scala allows dereferencing nullable refences.


More information about the Digitalmars-d mailing list