[erlang-questions] nand problem

Anthony Ramine n.oxyde@REDACTED
Tue Jan 27 16:41:03 CET 2015


Le 26 janv. 2015 à 23:09, Imants Cekusins <imantc@REDACTED> a écrit :

> or use guards:
> 
> b_and(A,B) when is_boolean(A), is_boolean(B)->
> A and B.
> 
> guards would cause a crash if non-booleans are passed.

No need for guards if you are using the 'and' operator. It will crash too.




More information about the erlang-questions mailing list