Skip to content

Commit

Permalink
custom operators using ? (#1291)
Browse files Browse the repository at this point in the history
added an additional rule for custom operators from the F# 4.0 Spec Section 3.7
  • Loading branch information
cloudRoutine authored and cartermp committed Nov 30, 2016
1 parent cb70a72 commit 0761d4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/fsharp/language-reference/operator-overloading.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ Depending on the exact character sequence you use, your operator will have a cer

The operator character `.` does not affect precedence, so that, for example, if you want to define your own version of multiplication that has the same precedence and associativity as ordinary multiplication, you could create operators such as `.*`.

Only the operators `?` and `?<-` may start with `?.`

A table that shows the precedence of all operators in F# can be found in [Symbol and Operator Reference](symbol-and-operator-reference/index.md).


Expand Down

0 comments on commit 0761d4c

Please sign in to comment.