« Return to Thread: comma vs andalso

Re: comma vs andalso

by Roberto Ostinelli :: Rate this Message:

Reply to Author | View in Thread


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.


________________________________________________________________
erlang-questions mailing list. See http://www.erlang.org/faq.html
erlang-questions (at) erlang.org

 « Return to Thread: comma vs andalso