Re: Protected destructors
| From: | K Sandvik | Date: | Tue, 01 Oct 2024 15:39:46 +0000 |
| Subject: | Re: Protected destructors | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-125711@lists.php.net to get a copy of this message | ||
> On Oct 1, 2024, at 5:12 AM, Arnaud Le Blanc <arnaud.lb@gmail.com> wrote:
>
> Some use-cases of destructors could be replaced with patterns like
> Python's with() [3], Java's try-with [4], or Go's defer [5].
defer would be neat in PHP. --Kent