First time reading about the `await? foo()` variant. That's not terrible. Having the choice between that and `await foo()?` seems pretty good. Slight preference towards the latter, but I'd be good with either version tbh.
-
-
Do think let res = await (foo()?)?; is clearer?
-
Yeah actually; it's closer to how math operations would be scoped, which is something I'm already used to. Though in a real program I'd likely split this off into two lines to make it easier to read. let fut = foo()?; let res = await fut()?;
- 5 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.