Pass by reference vs pass by value


(Johan Dahl) #1

Best animation ever to explain difference :smiley:


(catacombs) #2

Wow…I get it now.


(framp) #3

Great animation :+1:
But frankly - it’s also clear by text:

If I pass you a pint by value we both can drink a pint.
If I pass you a pint by reference we have to share the pint.

:grinning:


(cosmos) #4

content of a page -> pass by value
url -> pass by reference


(Jaron R. Swab) #5

That’s the most awesome graphic I’ve seen today.
Thanks for sharing. We should have more of these btw…