3 ms·
But it’s still pass by value. Passing by ref allows swapping out the entire object, which is not possible in a language such as JavaScript.
by city41 8y ago
But it’s still pass by value. Passing by ref allows swapping out the entire object, which is not possible in a language such as JavaScript.
- sciurus 8y agoRight, but this is the same way Python works. Jumping back to the original argument in the post, the author claimed that Python was "going out of it's way to be different" by passing objects by reference value. C# provides a counterxample to that claim.