[erlang-questions] call by value
Jesper Louis Andersen
Thu May 19 18:28:27 CEST 2011
On Thu, May 19, 2011 at 18:23, Jesper Louis Andersen
> f(3 + 5) ==> (3 + 5) + 7 ==> 8 + 7 ==> 15
> which is the call-by-reference evaluation strategy. Erlang is a
> Call-by-value (or an eager/strict) language. Clean and Haskell are
> good examples of languages that use a variant the call-by-reference
> strategy named call-by-need.
Ok, I was wrong here. Haskell and Clean are call-by-need, but I was
thinking of call-by-name and not call by reference. My bad, see
for the full information about it.
More information about the erlang-questions