[article] Language Design Deal Breakers

deadalnix deadalnix at gmail.com
Sat May 25 22:59:42 PDT 2013


On Sunday, 26 May 2013 at 01:31:11 UTC, Timon Gehr wrote:
> scala> val s : String = null;
> s: String = null
> scala> s(0)
> java.lang.NullPointerException
>

In scala, null must be scoped. In REPL, the scope is infinite, so 
is the appearance of null. Still, scala's null is more 
restrictive than what exists in most languages.


More information about the Digitalmars-d mailing list