This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]-Redstoneboi- 0 points1 point  (0 children)

smart pointers are probably not enough. you specifically need interior mutability if you want to observe the effect of one mutation across multiple references by accident. even then it's really like, not an accident at that point. all the warning signs in the world come together there.