[erlang-questions] comma vs andalso

Roberto Ostinelli roberto@REDACTED
Tue Jul 7 08:09:17 CEST 2009


On 07/lug/2009, at 02.47, "Richard O'Keefe" <ok@REDACTED> wrote:

>
> On Jul 7, 2009, at 12:19 AM, Roberto Ostinelli wrote:
>> the difference is very simple. comma indicates that both guard  
>> operators need to be evaluated, while on the contrary 'andalso'  
>> means that the second condition is evaluated ONLY if condition1 is  
>> true. same goes for 'orselse'.
>
> He's wrong, but he's not _crazy_.
> Section 6.24 of the reference manual _ought_ to explain this
> clearly, but doesn't.

that is the paragraph i'd been referring to and apparently i had been  
interpreting it wrongly.

i thought this had already been cleared yesterday and yes, an editing  
as proposed would be a good thing, i might not be the only one doing so.

r.


More information about the erlang-questions mailing list