“was also valid, then when they both went out of scope, it…” — The Pragmatic Engineer at 21:39
“was also valid, then when they both went out of scope, it would clean up the string twice, which is not legal in most other languages, the garbage collector takes care of this, a and b just go out of scope, do nothing. And then later it cleans up the string. But here, we actually have to do it when we go out of”
0:00
1:04:59