-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve interior mutability slide #1683
Conversation
Mutex is probably more broadly understood by people coming from other languages.
Like @hurryabit said in the issue, I also feel it's weird to use a The Talking about |
I went back to using just |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I think should be good.
I think it looks pretty good. I really like your concise part about "if there are no references, borrowing rules cannot be broken". I had no thought of it like this myself. Have you considered focusing on |
I did consider using I think RefCell hits the sweet spot of being complex enough to illustrate the point, without being too complex. |
Alright, I'm happy with that. Let's get it in! 😄 |
Mutex is probably more broadly understood by people coming from other languages.
Fixes #1512.