4 ms·
For me, it helps that ".await" appears as a keyword because of syntax highlighting. It is an odd syntax, but the alternative way of making await a prefix operat
by majewsky 7y ago
For me, it helps that ".await" appears as a keyword because of syntax highlighting. It is an odd syntax, but the alternative way of making await a prefix operator instead of a postfix operator would have been way worse for readability. Compare
let bar = list_foos().await.first().list_bars().await.first();
vs.
let bar = (await (await list_foos()).first().list_bars()).first();