Re:C++ vs. Rust Build Times
by petesergeant on Sunday January 08, 2023 @12:05AM
(#34296215)
> It wasn't until I learned C that I realized you might even program in this fashion (somewhat to my horror) where passing variables to functions could mutate them
If you pass an array to a function in JavaScript, then any changes you make to it will mutate the version the caller has.
If you pass an array to a function in JavaScript, then any changes you make to it will mutate the version the caller has.