[erlang-questions] comma vs andalso

Roberto Ostinelli roberto@REDACTED
Mon Jul 6 15:09:52 CEST 2009


On 06/lug/09, at 15:00, Hynek Vychodil wrote:

>
> It seems you are still in python mode. lists:nth/2 is not allowed in  
> guard expression.

you are definitely right :)

let me point another (and correct) example then:

foo(..) when X =/= 0 andalso 1/X > 0.1 -> ..

the following expression would fail instead:

foo(..) when X =/= 0, 1/X > 0.1 -> ..

r.



More information about the erlang-questions mailing list