[eeps] Minor incorrect detail in EEP 17

Bjorn Gustavsson <>
Wed Aug 13 11:28:11 CEST 2008

When compiling the following code

g(X) when X >= 0 andalso X < 1 -> math:sqrt(X).

from EEP 17 using R12B-3, I get the following code

{function, g, 1, 4}.

which still has an unnecessary stack frame, but it is better
than the code listed in the EEP. I supposed you must have used
an older compiler.

I am aware that andalso and orelse in guards produce inefficient
code, and I agree that the code quality should be improved.

Björn Gustavsson, Erlang/OTP, Ericsson AB

More information about the eeps mailing list