=:= vs == and a shorter version of if

joel reymont joelr1@REDACTED
Mon Apr 18 12:02:05 CEST 2005


Howdy!

Should I always use =:= instead of == if I don´t need type conversion?
How much more efficient is that?

Also, is there a shorter way of saying the following? 

if
    SomeCondition -> 
        dostuff;
   true -> 
        ok
end.

    Thanks, Joel

-- 
http://wagerlabs.com/tech



More information about the erlang-questions mailing list