tour_of_rust icon indicating copy to clipboard operation
tour_of_rust copied to clipboard

Suggestion for new chapters: async, closures, multithread

Open mgemard opened this issue 5 years ago • 4 comments

from reddit feedback

What do you think?

mgemard avatar Jul 15 '20 10:07 mgemard

I feel like this is a good idea! I could see there being two chapters:

  • explaining closures and showing their use in multithreaded programming and maybe a breif commentary on mutexes
  • a chapter fully on async and executors

richardanaya avatar Jul 15 '20 13:07 richardanaya

Just saying, I'm waiting on this one to arrive to take the tour :)

oblitum avatar Jul 21 '20 18:07 oblitum

Bit off-topic. There was a recent blog post that got awesome feedback for its crystal clear and succinct explanation of Rust's module system. Maybe Tour of Rust can borrow its approach to explain that?

https://www.reddit.com/r/rust/comments/htzkq7/clear_explanation_of_rusts_module_system/

oblitum avatar Jul 21 '20 18:07 oblitum

I was thinking about this this morning, I think async/await could be explained in a chapter. I'm going to think it over this weekend. All the parts seem here:

  • rust playground has tokio support for an executor
  • it doesnt require explaining multithreading issues
  • it's conceptually similar to javascript, so nothing too advanced

richardanaya avatar Jul 23 '20 14:07 richardanaya