fslang-design
fslang-design copied to clipboard
Question about operators starting with `?`
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?
The docs and spec should be updated, thanks
https://github.com/dotnet/docs/pull/28497
Thanks to you both for the clarification!