Re: [RFC] Optional Catch Block Body
| From: | Casper Langemeijer | Date: | Thu, 31 Jul 2025 15:21:37 +0000 |
| Subject: | Re: [RFC] Optional Catch Block Body | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-128346@lists.php.net to get a copy of this message | ||
On Thu, Jul 31, 2025, at 06:53, Mihail Liahimov wrote:
> Proposal
>
> Allow the following syntax where the curly braces can be omitted when no exception variable is
> specified and no handling is needed:
>
> try {
> // code that may throw
> } catch (SomeError);
Can you write out how this would interoperate with the finally keyword?