NYCPHP Meetup

NYPHP.org

[nycphp-talk] Why is pass-by-reference deprecated?

Allen Shaw ashaw at polymerdb.org
Mon Nov 19 13:32:22 EST 2007


Gary Mort wrote:
> Cliff Hirsch wrote:
>> Besides being ugly, difficult to understand and not very elegant...
> Because ... you should know ahead of time whether or not you want to 
> pass by reference or pass a copy, and not decide to do it at the time 
> you call your code.
> [snip]
That's a good explanation from Gary, but to give Cliff credit, I think 
this is probably what he meant by "ugly, difficult to understand and not 
very elegant."

- A.

-- 
Allen Shaw
slidePresenter (http://slides.sourceforge.net)




More information about the talk mailing list