OCaml: Why I can't use this operator infix?
问题 I defined a custom equality operator (the definition is not really important so I will insert dummy stuff): let ( ~=~ ) a b = true If I try to use it infix: if a ~=~ b then 1 else 2 I get the following error: This expression is not a function; it cannot be applied . I can fix this either by renaming the operator from ~=~ to =~ or by calling it as a function: if (~=~) a b then 1 else 2 . This seems that is a general problem with operators that start with ~ . My question is why I can't use such