Re: Why do we need “toclose” (or those angle brackets) at all?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Why do we need “toclose” (or those angle brackets) at all?
- From: Ryan Ford <ryan@...>
- Date: 2019年6月14日 21:24:21 +0800
On 2019年6月14日 11:27:27 +0000
Paul Ducklin <pducklin@outlook.com> wrote:
> Here’s something I don’t understand.
>
> Why do we need the ugly, weird-looking and controversial <toclose> notation at all? (Also, “toclose” isn’t quite the right word anyway, but that is another matter.)
I could be wrong, but I believe it's related to the new generational gc. If it doesn't get collected early, it could be a while before it does get collected, so now you'll have a way to get it taken care of when the variable goes out of scope and would then no longer be needed.
That's my limited understanding