Re: [RFC] Optional Catch Block Body

From: Date: Thu, 31 Jul 2025 17:25:35 +0000
Subject: Re: [RFC] Optional Catch Block Body
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-128353@lists.php.net to get a copy of this message
On Thu, Jul 31, 2025, at 17:33, Rowan Tommins [IMSoP] wrote: > On 31/07/2025 15:17, Rob Landers wrote: > > They're not used for flow control, or state. They merely force PHP to > > unwind the stack to a known place > > > I don't understand the distinction here; you want to continue code at a > particular point (control flow), and unwind the stack (state management). Unconditionally, yes. This is more like a bailout of user code, not throwing the exception would enter an infinite loop or cause an error. So, it’s kind of a gray area between flow control and exceptional. > > That doesn't mean your use case isn't valid, but it's like saying > "it's > not a knife, it's merely a sharpened metallic implement used to cut things". > > -- > Rowan Tommins > [IMSoP] > lol. Fair enough. — Rob

« previous php.internals (#128353) next »