Please don’t a result types to the standard library as an alternative to exceptions. We don’t need another way to do things here.
If things should error, they should error. If things don’t know if they should error and have a returnable value, they should return that value or state and let the caller decide.
If things shouldn’t error, they shouldn’t error.
requests’s api is not something people should mimic. Response.raise_for_status() is horrible. requests successfully made the request, it has valid response data for you. If you decide to error, you should be doing that, not requests, and you can do it based on the value, you don’t need a result type for this.
That’s not correct. Futures and Result types without syntax support are just another return type that people have to learn.
@mikeshardmind brought this up already, and it’s hard to read your response as being in good faith.
This also appears to misrepresent someone else and directly state that someone has an opinion that hasn’t been expressed here.