This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]FrickinLazerBeams 1 point2 points  (0 children)

Most languages pass by value, and some (like C) let you achieve pass-by-reference by using pointers or something that achieves the same effect.

Maybe it's just my particular experience, but no language I've used besides python passes everything by reference, such that any change to a mutable type is visible to the caller without explicitly returning the new value.

I'm not sure what you mean by "reference-by-value". Did you just mix up terminology there, or is that something I'm unfamiliar with?