That looks pretty awful compared to the same in go and node.js
-
-
-
Haha, yeah - async disk IO was only added 4 weeks ago. I think with a bit of time it'll be so much nicer. If read_to_string() + async/await becomes available: let file = path::Path::new("./README.md"); let string = await fs::read_to_string(file)?; https://doc.rust-lang.org/stable/std/fs/fn.read_to_string.html …
- 4 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.