alexandermalyga / poltergeist

Rust-like error handling in Python, with type-safety in mind.
MIT License
131 stars 3 forks source link

Comment on potentially similar work #3

Open thisismygitrepo opened 10 months ago

thisismygitrepo commented 10 months ago

I found this more popular library

https://github.com/rustedpy/result

Can we may be put a section in the README on how is this different or similar.

Thanks.

ArneBachmannDLR commented 8 months ago

I like the concise focus of this library. There is another library that does provide exactly the same Result type (and some more), called koda.

The novelty with poltergeist is the catch decorator, which is missing from the above. I would celebrate if your work was combined with the above to get a small, type-safe result handling library. BTW, the reference to Rust is not necessarily needed, it could also be a reference to Haskell or other functional languages.

caioariede commented 8 months ago

The novelty with poltergeist is the catch decorator, which is missing from the above

You mean it's missing from koda or rustedpy/result? It seems to be similar to as_result in result's:

https://github.com/rustedpy/result?tab=readme-ov-file#as_result-decorator

ArneBachmannDLR commented 7 months ago

You mean it's missing from koda or rustedpy/result

No, I was just adding to the conversation of similar existing libraries.