There are no default values in object declaration. Usual way to do this is with 
a newFoo proc. 
    
    
    proc newFoo(): Foo =
      Foo(bar: 42, value = 3.2)
    
    
    Run

Reply via email to