Re: [RFC] Explicit call-site send-by-ref syntax
| From: | Claude Pache | Date: | Mon, 29 Jul 2019 15:36:15 +0000 |
| Subject: | Re: [RFC] Explicit call-site send-by-ref syntax | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-106324@lists.php.net to get a copy of this message | ||
> Le 29 juil. 2019 à 16:40, Nikita Popov <nikita.ppv@gmail.com> a écrit :
>
>
> You seem to be agreeing with what I originally said: That by-reference passing is mainly useful
> to interoperate with by-reference internal functions, which don't exactly leave you with a
> choice.
>
To be clear: No, I’m not agreeing with: “That by-reference passing is mainly useful to
interoperate with by-reference internal functions”. I don’t think that every PHP developer
consider that the design of
array_push() and array_multisort() is flawed,
and that they must avoid such a pattern in their own user-defined functions.
More generally, I don’t think that every PHP developer consider that only the latest trendy coding
style is valid, or that every legacy code not following that style should be rewritten.
—Claude