note 120351 added to language.references.pass

From: Date: Mon, 19 Dec 2016 20:32:31 +0000
Subject: note 120351 added to language.references.pass
Groups: php.notes 
Request: Send a blank email to php-notes+get-208668@lists.php.net to get a copy of this message
The comment by tnestved at yahoo dot com is incorrect as it is based purely on perception and not architecture. The method passing the object should not care whether it is by ref or by val, and nor should the reader. If we are talking about readability and perception, then the receiving method needs to show that the object coming in is a reference, not an object instance, otherwise the reader is perplexed why the object is not returned. Good functional headers alleviate all issues in this case. ---- Server IP: 72.52.91.14 Probable Submitter: 107.1.238.189 ---- Manual Page -- http://php.net/manual/en/language.references.pass.php Edit -- https://master.php.net/note/edit/120351 Del: integrated -- https://master.php.net/note/delete/120351/integrated Del: useless -- https://master.php.net/note/delete/120351/useless Del: bad code -- https://master.php.net/note/delete/120351/bad+code Del: spam -- https://master.php.net/note/delete/120351/spam Del: non-english -- https://master.php.net/note/delete/120351/non-english Del: in docs -- https://master.php.net/note/delete/120351/in+docs Del: other reasons-- https://master.php.net/note/delete/120351 Reject -- https://master.php.net/note/reject/120351 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#208668) next »