[erlang-questions] difference between ", " and "andalso" in guards
Steve Davis
steven.charles.davis@REDACTED
Tue May 20 00:05:22 CEST 2014
I can't imagine an output difference. Shouldn't "," =:= "andalso" and ";"
=:= "orelse".
The difference appears to be a performance optimization - where would the
"orelse shortcut" be incorrect?
(Could be I'm underthinking this)...
On Saturday, May 17, 2014 11:20:08 PM UTC-5, Adel Zhang wrote:
>
> hi, I am currently reading "learnyousomeerlang". In "Syntax in Functions"
>
> chapter "guards" section, Fred said
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140519/77dbb2ef/attachment.htm>
More information about the erlang-questions
mailing list