[RFC][Discussion] - list() reference syntax

From: Date: Sat, 31 Dec 2016 06:21:15 +0000
Subject: [RFC][Discussion] - list() reference syntax
Groups: php.internals 
Request: Send a blank email to internals+get-97496@lists.php.net to get a copy of this message
Hi All, I had mentioned the other day my desire to look at, and attempt implementation of allowing by-reference assignment within list()'s. Andrea had created an RFC for this purpose 2+years ago, but withdrew it due to problems with implementation with the parsing/compiler of PHP 5. I've taken a shot at implementing this feature within PHP7 and have commandeered the RFC and would like to re-open it for discussion. I've attached to the RFC my current implementation which seems to be working in the cases I can think of. I'd be interested to hear from the community about if this feature is still desirable, and if so, if there are list() cases that I haven't thought about yet for test cases. RFC (sorry for awkward formatting, not sure if the issues with links in messages & mailinglist are fixed yet): wiki php net/rfc/list_reference_assignment Cheers -- Dave

« previous php.internals (#97496) next »