Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about operators starting with ? #639

Open
mlaily opened this issue Oct 24, 2021 · 3 comments · Fixed by dotnet/docs#28497
Open

Question about operators starting with ? #639

mlaily opened this issue Oct 24, 2021 · 3 comments · Fixed by dotnet/docs#28497

Comments

@mlaily
Copy link

mlaily commented Oct 24, 2021

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 (dotnet/docs#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?

@dsyme
Copy link
Contributor

dsyme commented Mar 4, 2022

The docs and spec should be updated, thanks

cartermp added a commit to cartermp/docs that referenced this issue Mar 4, 2022
fixes fsharp/fslang-design#639

This was an incorrect statement.
@cartermp
Copy link
Member

cartermp commented Mar 4, 2022

dotnet/docs#28497

@mlaily
Copy link
Author

mlaily commented Mar 4, 2022

Thanks to you both for the clarification!

BillWagner pushed a commit to dotnet/docs that referenced this issue Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants