Hat! = Eine Bedeutung in OCaml?
Es scheint ein Äquivalenzvergleich für einige Typen zu sein, aber keine Zeichenfolgen.
# 3 != 3;;
- : bool = false
# 3 != 2;;
- : bool = true
Das ist wie erwartet.
# "odp" = "odp";;
- : bool = true
# "odp" != "odp";;
- : bool = true
# "odp" <> "odp";;
- : bool = false
Warum tut"odp" != "odp"
bewerten zutrue
? Was macht es eigentlich? Sollte es nicht zu einem Tippfehler kommen?