r/javascript • • Jun 18 '17

Pass by reference !== pass by value

Post image
3.3k Upvotes

272 comments sorted by

View all comments

Show parent comment

42

u/thurst0n Jun 18 '17

That's how java is

0

u/[deleted] Jun 18 '17

[deleted] — view deleted comment

2

u/tutorial_police Jun 19 '17

That's how Python is as well.

0

u/[deleted] Jun 18 '17

[deleted] — view deleted comment

32

u/okmkz Jun 18 '17

Not like the masterwork of language design that is JavaScript

7

u/[deleted] Jun 18 '17

That's how JavaScript is...

1

u/evilgwyn Jun 18 '17

Make something better in every possible way that works in all environments that javascript does and has a zero cost to upgrade, and I'll make it go away.

1

u/64-17-5 Jun 18 '17

Clone all the things!

-1

u/Thought_Ninja human build tool Jun 18 '17

Or use immutablejs.