3 ms·
Is this something you write often in Rust? A promise returning a struct with a promise returning a struct with a promise. Although I agree that await could use
by wruza 2y ago
Is this something you write often in Rust? A promise returning a struct with a promise returning a struct with a promise.
Although I agree that await could use some precedence like new in javascript:
new types.Date().toJSON()
// fine
await readdir(…).filter(…)
// oops
I’d rather parenthesize what I’m awaiting in complex cases than awaiting just everything that follows.