The constant nil
denotes a reference to nothing. It can be used where an object of a reference type is expected; otherwise uninitialized values of reference type start off with this value. It can be assigned to reference objects, and reference types can be tested for equality with it. (The keyword has other uses as well.)