Skip to content

Is there operator for f# that works like ?? in csharp #13768

Answered by En3Tho
Xyncgas asked this question in Q&A
Discussion options

You must be logged in to vote

No, there is not. I tried doing something like that but C# has special handling of this operator (especially precedence).

Option.defaultValue/defaultWith is the way to go in F#.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vzarytovskii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants