简体   繁体   English

F#自定义运算符优先级

[英]F# Custom Operators Precedence

In F#, you can define custom operators like 在F#中,您可以定义自定义运算符

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

Unlike Haskell, custom operators are defined without precedences. 与Haskell不同,自定义运算符的定义没有优先级。 What are the operator precedences of the custom operators in F#? F#中自定义运算符的运算符优先级是什么?

根据预定义的表 ,运算符优先级由第一个字符确定。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM