tags:

views:

67

answers:

1

In F#, you can define custom operators like

let (=~) input pattern = Regex.IsMatch(input, pattern)

Unlike Haskell, custom operators are defined without precedences. What are the operator precedences of the custom operators in F#?

+8  A: 

Operator precedence is determined by the first character(s), according to a predefined table.

Gilles
See also the F# spec: http://research.microsoft.com/en-us/um/cambridge/projects/fsharp/manual/spec.html#_Toc264041843
kvb