Re: Protected destructors

From: Date: Tue, 01 Oct 2024 18:29:31 +0000
Subject: Re: Protected destructors
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-125714@lists.php.net to get a copy of this message
On Tue, Oct 1, 2024, at 10:39 AM, K Sandvik wrote: >> 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 I would have said with() would be neat in PHP. :-) --Larry Garfield

« previous php.internals (#125714) next »