[erlang-questions] difference between ", " and "andalso" in guards

Fred Hebert mononcqc@REDACTED
Mon May 19 03:07:27 CEST 2014


On 05/18, Fred Hebert wrote:
> The same way calling the
> function:
> 
> f([]) -> a;
> f(_) -> b.
> 
> as f([]) doesn't result in the first clause 'catching' a badmatch
> exception, the ';' doesn't end up catching exceptions either.

I totally meant 'calling ... as f({})' here. Sorry.

- Fred.



More information about the erlang-questions mailing list