News for hackers. Stuff that matters.
Re:Deep-copying in JavaScript by paulddraper on Thursday January 25, 2018 @03:40PM (#16234438)
> Nowadays, everything is pass-by-value.

Except for obscure, seldom-used languages like C++ and C#.

If you can write

    int a;
    ParseInt("123", a);
    Print(a); // print 123
your language has pass by reference.
Re:Deep-copying in JavaScript by pjmlp on Thursday January 25, 2018 @03:46PM (#16234495)
I would add other unknown languages like Ada, D, VB.NET, Delphi, FreePascal, Rust.
Re:Deep-copying in JavaScript by tomjakubowski on Thursday January 25, 2018 @05:59PM (#16235543)
Rust's references are ordinary values. Moreover, the GP's example wouldn't work in Rust; you'd need to pass a value of type &mut i32 to ParseInt to mutate the value.