See <https://github.com/arnetheduck/nim-result/>

Which allows
    
    
    proc ex: Opt[int] =
      let smth = ? anotherProcReturningAnOpt()
      # smth is now unpacked
      let smth2 = anotherProcReturningAnOpt().get(default)
      let smth3 = anotherProcReturningAnOpt().tryGet()
      # tryGet throw defect if value missing
    
    
    Run

<https://github.com/status-im/questionable> Adds operation chaining through 
`?.`, though it's not (yet) compatible with the nim-result opt

Reply via email to