Re: [RFC] Explicit call-site send-by-ref syntax
| From: | Björn Larsson | Date: | Mon, 29 Jul 2019 22:47:14 +0000 |
| Subject: | Re: [RFC] Explicit call-site send-by-ref syntax | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-106331@lists.php.net to get a copy of this message | ||
Den 2019-07-30 kl. 00:27, skrev Björn Larsson:
Den 2019-07-29 kl. 20:00, skrev Stephen Reay:To replace current PHP way of handling parameters is for sure a long-term goal, just imagine the BC break... To introduce out/inout parameters without phasing out references is probably a shorter goal to accomplish. r//Björn L PS I meant "replace current PHP way of handling reference parameters".On 29 Jul 2019, at 22:34, Rowan Collins <rowan.collins@gmail.com> wrote: I guess what I had in mind was that *in the long-term*, out/inout parameters would replace & parameters,Excuse my ignorance (presumably about the complexity involved) if this is obvious, but if out/inout parameters are considered to be a better solution for the problem references generally solve (I don’t doubt that they are, even as a user of references), why is that inherently a “long term” goal? Is it not a feasible goal for next years release? Cheers Stephen