> That's great. What's the syntax for declaring possibly nil types?
> 
> nil ref T.

[Optional Types](https://en.wikipedia.org/wiki/Option_type) suggests another 
alternative of

`T?`

so
    
    
      var
        v1: int   # not nil
        v2: int?  # can be nil
      
      proc xyz[T?](): T? =
        result = nil  # <- compile error, since not allowed
    
    

Reply via email to