Custom infix operators are a nice feature in some situations, but when you use them, you have to be very careful that your code is readable, so most of the time, the recommendation from the F # design guidelines is recommended. If I wrote "Functional Programming in the Real World" again, I would be a little less interested in them, because they really should be used carefully :-).
However, there are several F # libraries that make good use of user-defined operators, and sometimes they work very well. I think FParsec (the library of parser combinators) is one case - although there may be too many of them. Another example is the XML DSL , which uses @= .
In general, when you write a regular F # library, you probably do not want to open it. However, when you write a domain-specific language, custom operators may be useful.
source share