Everything I said is still my opinion and I would write your example like:
    
    
    type
      FooKind = enum a, b, c
      Foo = object
        case kind: FooKind
        of a, b: bar: int
        of a:
          a: int
        of b:
          b: int
        of c:
          c: int
    
    
    
    Run

Reply via email to