You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Result and its subclasses are a self-contained reusable abstraction. Which has made it awkward to figure out where to put them: in trio feels weird b/c they're not needed at all for using trio's main APIs, but trio.hazmat also feels weird because there's absolutely nothing hazardous about them, and in fact they are sometimes useful in ordinary code that's not using anything else in hazmat. (I guess this is related to #476.)
The most natural solution is perhaps to split them off into their own library that trio would depend on. Unfortunately result is taken on PyPI, though I guess results is free. Or I guess outcome is free.
Eh, I haven't thought about it too much :-). Either seems workable, really, or there are probably other options too that I didn't think of. I don't think it's worth stressing about too much; we'll quickly get used to whatever we pick.
Activity
RazerM commentedon Mar 20, 2018
Were you thinking
outcome.Outcome? I'm not sure ifresults.Resultis better 🤔njsmith commentedon Mar 21, 2018
Eh, I haven't thought about it too much :-). Either seems workable, really, or there are probably other options too that I didn't think of. I don't think it's worth stressing about too much; we'll quickly get used to whatever we pick.
Fuyukai commentedon Apr 13, 2018
Since this actually happened, should this issue be closed?
njsmith commentedon Apr 13, 2018
I guess this issue now should track the changes needed on trio's side to switch to using the new library?
Fuyukai commentedon Apr 14, 2018
I'll close this one and open a separate issue for that.