6 ms·
On the other hand, how many languages do you know where arrays are passed by value?
by safek 9y ago
On the other hand, how many languages do you know where arrays are passed by value?
- macintux 9y agoMy primary language (Erlang) does. I assume all functional programming languages do.
- safek 9y agoThat's true. I suppose my next argument is that seeing matrix.append(row) on its own line signals strongly that this is not a functional language.
- thedufer 9y agoIs that true? I thought most functional programming languages did call-by-reference. I mean, if you have immutable data you can't tell the difference (outside of performance).
- macintux 9y agoUnder the hood it's probably by reference, but the semantics are by value. By reference indicates that the original value can be changed in the called function. I think. Not a language lawyer.