fslang-design icon indicating copy to clipboard operation
fslang-design copied to clipboard

Question about operators starting with `?`

Open mlaily opened this issue 2 years ago • 3 comments

Hi,

I noticed that the latest FSharp Spec I could find (4.1) indicates in section 3.7 Symbolic Operators that

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

The language docs about operators were updated in 2016 to mention this (https://github.com/dotnet/docs/pull/1291), but there is also documentation about nullable operators that seems in direct contradiction with this statement.

The current compiler does allow custom operators starting with ? other than just ? or ?<-.

I didn't find a more up-to-date RFC in the fslang repo on this topic.

Did I miss something? What should I believe? Should the docs or/and the specs be changed?

mlaily avatar Oct 24 '21 13:10 mlaily

The docs and spec should be updated, thanks

dsyme avatar Mar 04 '22 13:03 dsyme

https://github.com/dotnet/docs/pull/28497

cartermp avatar Mar 04 '22 16:03 cartermp

Thanks to you both for the clarification!

mlaily avatar Mar 04 '22 18:03 mlaily