Re: [PHP-DEV] [RFC Draft] Introduce with as an alias for namespace use keyword

2025-05-27 Thread Ben Ramsey
On 5/24/25 04:49, Rowan Tommins [IMSoP] wrote: On 24 May 2025 10:08:46 BST, "马正强" wrote: Hello internals, I’d like to propose adding with as a full alias for the namespace-related use keyword in PHP. ... - Does this improvement warrant an RFC? - Are there objections to the concept or

Re: [PHP-DEV] [RFC Draft] Introduce with as an alias for namespace use keyword

2025-05-24 Thread Rowan Tommins [IMSoP]
On 24 May 2025 10:08:46 BST, "马正强" wrote: >Hello internals, > >I’d like to propose adding with as a full alias for the namespace-related >use keyword in PHP. ... > - Does this improvement warrant an RFC? > - Are there objections to the concept or keyword choice? It would certainly need an

[PHP-DEV] [RFC Draft] Introduce with as an alias for namespace use keyword

2025-05-24 Thread 马正强
Hello internals, I’d like to propose adding with as a full alias for the namespace-related use keyword in PHP. This is a purely syntactic improvement aimed at: 1. Clarifying semantics: with better conveys "reference/borrow" intent (e.g., with Foo\Bar vs. use Foo\Bar). 2. Reducing beginne