I'd prefer something that can integrate with the existing syntax instead of 
requiring a standalone block.
    
    
    type
      Foo {.variant.} = object
      case kind
      of Alpha:
        i: int
      of Beta:
        f: float
      of oamma:
        s: string
    
    
    Run

Reply via email to