note 9095 deleted from language.references.return by sniper
| From: | sniper@php.net | Date: | Tue, 30 Sep 2003 01:25:17 +0000 |
| Subject: | note 9095 deleted from language.references.return by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-57346@lists.php.net to get a copy of this message | ||
Note Submitter: nospam@steem.com
----
What I think this is doing is making $foo a reference to the returned data. Instead of having $foo
being a copy of the returned data. So this is a lot more efficient, especially if return'ed
data is large. I could be offbase here though, as I have been wrong at least once before.
It would be cool if it was possible to make this the default behavior for functions, I don't
see what would change by making this so. Except more efficient code, obviously. Although
there's probably a good reason I'm missing why it isn't the default. Maybe this is
why I don't design languages? :)