[erlang-questions] Comparing terms == vs. =:=

Ricardo Catalinas Jiménez jimenezrick@REDACTED
Tue Mar 20 17:35:02 CET 2012

I have read here http://erlang.org/pipermail/erlang-patches/2012-March/002721.html:
"It is always better to use =:= instead of == when not comparing numbers"

So, apart from prevent an implicit integer cast to float in the

1> 1 =:= 1.0.

What is the purpose of using =:= with all kind of terms?
Better performance?

Best regards
Ricardo (http://r.untroubled.be/)

More information about the erlang-questions mailing list