Why Erlang is the best concurrent language available
Fri Jan 24 16:40:42 CET 2003
I'm aware that tail-recursion can be implemented (behind-
the-scenes) as iteration, Matthias, and thus reduce stack
usage. But without use of reference variables the need to
specifically reverse the list still remains.
----- Original Message -----
From: "Matthias Lang" <>
To: "Daniel Dudley" <>
Sent: Friday, January 24, 2003 11:02 AM
Subject: Re: Why Erlang is the best concurrent language available
> > > "I build up this list backward, then I reverse it at the
> > > end, creating an entirely new copy of the list," then it
> > > *sounds* pretty appalling.
> > Well, it is appalling. Knowing that recursion "winds up"
> > before it "winds down", why do it twice when once will
> > suffice?
> Because tail recursion allows you to avoid the winding altogether.
> Avoiding the winding is useful because (a) it may help you avoid
> running out of memory and (b) it may be faster. See also:
More information about the erlang-questions