Re: [RFC] Short Array Variable Shorthand

From: Date: Tue, 29 Sep 2026 18:36:04 +0000
Subject: Re: [RFC] Short Array Variable Shorthand
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-132701@lists.php.net to get a copy of this message
Hi, Some amendment have been added after this email. We are using the = char instead of : ``` $point = [=$x, =$y]; ``` And we are supporting array() and list() for this RFC now, so not only []. See the RFC for reasons. Discussions have happened in the official phpc's discord server and thanks Tim Düsterhus for the ideas. This RFC is still in a very early stage. So there can be vagueness and obvious issues. If there is, please point out. Thanks, Weilin Du

« previous php.internals (#132701) next »