Re: [RFC] Context Managers

From: Date: Wed, 05 Nov 2025 20:30:59 +0000
Subject: Re: [RFC] Context Managers
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-129093@lists.php.net to get a copy of this message
On 2025-11-05 09:38, Deleu wrote:

Out of curiosity, what happens if GOTO is used inside a context block to jump away from it?
I don't think this is crazy enough. I'm curious what is supposed to happen if you goto into one! Btw is the naming clash with global functions real? I've seen some with() helpers here or there but you can't use a function in a with($something) {} and you can't use the new control structure as a callable, so where's the ambiguity requiring to make the keywordd reserved? BR, Juris

Thread (33 messages)

« previous php.internals (#129093) next »