[erlang-questions] conditional expressions

Richard Carlsson <>
Wed Nov 19 16:28:24 CET 2008

David Mercer wrote:
> Can someone please explain the tail recursion problem with andalso?  Thanks.

It checks that the return value of the right hand side is a boolean,
so it must wait for the evaluation to return; it can't just do a tail
call if the left hand side evaluates to true. (The OTP folks thought
that error checking was more important than tail recursion for these


More information about the erlang-questions mailing list