Is this the proper way to initialize null references in Scala?

Posted by Geo on Stack Overflow See other posts from Stack Overflow or by Geo
Published on 2010-03-13T21:38:20Z Indexed on 2010/03/13 21:45 UTC
Read the original article Hit count: 177

Filed under:
|

Let's say I have a MyObject instance which is not initialized:

var a:MyObject = null

is this the proper way to initialize it to null?

© Stack Overflow or respective owner

Related posts about scala

Related posts about null