Archives / Snippets / Projets

http://stackoverflow.com/a/1412688

<> is to = (structural equality) as != is to == (physical equality)

"odg" = "odg"  (* true  *)
"odg" == "odg" (* false *)
is false because each is instantiated in different memory locations, doing:

let v = "odg"
v == v (* true *)
v = v  (* true *)
Most of the time you'll want to use = and <>.