Null object

The absence of a value is represented by nil

var undefined          # initialized with an implicit nil
say undefined==nil     # true
say defined(nil)       # false

However, nil is not an object, so we can't call methods on it. Alternatively, Sidef provides the null object:

var null_obj = null         # initialize with a null value
say null_obj.is_a(null)     # true
say defined(null_obj)       # true