note 115919 added to language.references.pass
| From: | tnestved at yahoo dot com | Date: | Tue, 14 Oct 2014 13:54:11 +0000 |
| Subject: | note 115919 added to language.references.pass | ||
| Groups: | php.notes php.notes | ||
| Request: | Send a blank email to php-notes+get-200645@lists.php.net to get a copy of this message | ||
By removing the ability to include the reference sign on function calls where pass-by-reference is
incurred (I.e., function definition uses &), the readability of the code suffers, as one has to
look at the function definition to know if the variable being passed is by-ref or not (I.e.,
potential to be modified). If both function calls and function definitions require the reference
sign (I.e., &), readability is improved, and it also lessens the potential of an inadvertent
error in the code itself. Going full on fatal error in 5.4.0 now forces everyone to have less
readable code. That is, does a function merely use the variable, or potentially modify it...now we
have to find the function definition and physically look at it to know, whereas before we would know
the intent immediately.
----
Server IP: 72.52.91.14
Probable Submitter: 67.189.207.207
----
Manual Page -- http://php.net/manual/en/language.references.pass.php
Edit -- https://master.php.net/note/edit/115919
Del: integrated -- https://master.php.net/note/delete/115919/integrated
Del: useless -- https://master.php.net/note/delete/115919/useless
Del: bad code -- https://master.php.net/note/delete/115919/bad+code
Del: spam -- https://master.php.net/note/delete/115919/spam
Del: non-english -- https://master.php.net/note/delete/115919/non-english
Del: in docs -- https://master.php.net/note/delete/115919/in+docs
Del: other reasons-- https://master.php.net/note/delete/115919
Reject -- https://master.php.net/note/reject/115919
Search -- https://master.php.net/manage/user-notes.php