Picture of Roberto Aloi
Re: Strange behavior
by Roberto Aloi - Tuesday, 27 November 2012, 11:11 AM
 
Hi Andrey,

I guess the message is a bit misleading, here. What he's trying to say is that values different than booleans are accepted by your function:

b_not(foobar) -> true.

In fact, in Erlang, booleans are not a datatype. They're simply atoms. The message should say: "it should refuse values other than the atoms true and false".

Take that as a warning and not an error, though. It's merely something you should be aware of.