[erlang-questions] preferred looping style
Thu Jun 23 15:33:56 CEST 2011
Definitely the second one is better. It's more readable.
On Thu, Jun 23, 2011 at 4:20 AM, Richard O'Keefe <> wrote:
> On 23/06/2011, at 5:44 AM, Icarus Alive wrote:
> > Hi,
> > Of these 2 styles, which one is preferred, and why ?
> > To me, the readability of 2nd style is better, tough it consumes 1 stack
> frame extra.
> Why do you say style 2 consumes one stack frame extra?
> It's called via a tail call, so that when mainLoop/0
> is running there isn't any frame for loopInit/0.
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions