|
|
|
|
|
by zahlman
405 days ago
|
|
> Not understanding the lifetimes of objects is what makes shared mutability hard. Well, no; in my experience the difficulty overwhelmingly comes from thinking about the semantics. I.e.: these two clients currently share a mutable object; should they observe each others' mutations? Or: if I clone this object, will I regret not propagating the change to other clients? |
|