from Hacker News

montasaurus/result: A simple Rust-like Result type for Python 3

by networked on 4/6/25, 2:10 PM with 2 comments

  • by niux on 4/7/25, 12:46 PM

    Funnily, I released something similar two weeks ago with more targeted decorators (sync vs async), a more strict `Err` type and a less verbose type guard (`ok`):

    https://github.com/overflowy/safe-result

  • by atoav on 4/6/25, 10:35 PM

    I used this in a project or two and I really like what it does to the code and error handling. Can recommend checking it out.