3 ms·
You are thinking "call by value". The author probably used "pass" not "call" specifically to avoid this.
by Ericson2314 1y ago
You are thinking "call by value". The author probably used "pass" not "call" specifically to avoid this.
- kazinator 1y agoThere is no difference. Call-by-alue is the older term, and I believe still preferred in CS acdemia.
- gpderetta 1y agoI think that call-by-value/call-by-name/call-by-need[1] are more about strict vs lazy evaluation, as opposed to by-value/by-reference semantics. [1] there is also call-by-push-value, but i was never able to wrap my mind around it.