Does != have meaning in OCaml?

前端 未结 5 1698
抹茶落季
抹茶落季 2020-12-07 22:50

It seems to be an equivalency comparison for some types, but not strings.

# 3 != 3;;
- : bool = false
# 3 != 2;;
- : bool = true

This is as

5条回答
  •  一生所求
    2020-12-07 23:04

    ints are the only type where physical and structural equality are the same, because ints are the only type that is unboxed

提交回复
热议问题