Re: [RFC] Context Managers

From: Date: Tue, 16 Dec 2025 10:13:19 +0000
Subject: Re: [RFC] Context Managers
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-129619@lists.php.net to get a copy of this message
On 2025-12-16 21:08, Rowan Tommins [IMSoP] wrote:
My favourite among my own suggestions was "using($cValue from new CM())", but Larry didn't like the reversed order. I also suggested 'using(new CM() for $cValue)", but I don't think that's as clear. Perhaps there is some other word we can use? I suspect it would not need to be fully reserved, as it's used in a very restricted context.
I guess a symmetric counterpart to using "from" would give "using(new CM() to $cValue)". Maybe "into".

« previous php.internals (#129619) next »