3 ms·
Bit weird to have a rust tutorial list JavaScript async as assumed knowledge tbh.
by Havoc 5mo ago
Bit weird to have a rust tutorial list JavaScript async as assumed knowledge tbh.
- fyrn_ 5mo agoYeah, it also makes it seem like Rust is weird for using Future as the type name, but actually JavaScript (Promise) is the odd one out here. Probably a JS dev learning Rust without much exposure to other languages
- steveklabnik 5mo agoI think it's also good that we did not name it Promise because there are a lot of differences in implementation that really matter, and so if Rust had gone with the same name, some people might be confused about some things.
- febin 5mo agoFixed this, thank you.
- the__alchemist 5mo agoCould it be that this is related to the high (anecdotally observed) correlation between Async and webdev in rust? Most of the web-related crates I've run into require Async.
- contextfree 5mo agoJS async is similar to C# async (which I think it was based on), think lots of developers are familiar with one or both of those. As one of those developers Rust async definitely threw me for a loop (literally?) when I first encountered it.
- cmpb 5mo agoI had the same thought, but then I realized that everyone on my team actually _does_ have experience with JavaScript async, so I just rolled with it. Not sure what that's about