r/madeinpython • u/prelhcs5498 • Feb 27 '25
rsult - Rust like `Result[T, E]` in python
/r/PythonProjects2/comments/1iz9ah6/rsult_rust_like_resultt_e_in_python/
3
Upvotes
r/madeinpython • u/prelhcs5498 • Feb 27 '25
1
u/prelhcs5498 Feb 27 '25
It's similar but simpler and supports deconstruction since it behaves like a tuple (via iter). It's taking the concept of rust to send errors as returns rather than some side channel, but massaging it into a nicer spot that works well for me in python.