News for hackers. Stuff that matters.
Re:Mental models around Ok-Wrapping by cogman10 on Friday April 10, 2020 @11:19AM (#22833888)
I might agree more if async was just doing the Future type wrapping. However, because it is doing much more, it feels fundamentally different (hence the keyword).

I probably haven't interacted enough with larger rust projects, but I just don't see how "OK(123)" could ultimately cause all that much friction when working with the language.

Re:Mental models around Ok-Wrapping by weiming on Friday April 10, 2020 @11:22AM (#22833929)
Oh, I'm totally fine with Ok(123). The current syntax with Result is explicit and flexible even if slightly verbose. It's especially nice that Result is an enum like any other.