-
Notifications
You must be signed in to change notification settings - Fork 21
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
Allow ValueOptions to be used as optional parameter types #1136
Comments
Yep, to me this is a "can't see why no" sorta deal |
There should be a way to do this yes. I don't think Perhaps Semi-related: it's curious that |
I think it could be argued that it's not too bad for readers to not be able to tell if type IMyInterface =
abstract M : ?a:int -> unit So we do need a separate syntax indeed.
Well, since the tag for |
I've marked this approved-in-principle. It would be great to have it implemented |
This suggestion is contained in the RFC https://github.com/fsharp/fslang-design/blob/main/RFCs/FS-1104-struct-representations.md |
Yup, the best proposal in that RFC is really |
I propose we allow:
The existing way of approaching this problem in F# is using reference options.
Pros and Cons
The advantages of making this adjustment to F# are
The disadvantage of making this adjustment to F# is that existing code
?a
will have another potential type for all of us to learn about.Extra information
Estimated cost (XS, S, M, L, XL, XXL): S
Related suggestions: all are ValueOption parity features.
Affidavit (please submit!)
Please tick this by placing a cross in the box:
Please tick all that apply:
For Readers
If you would like to see this issue implemented, please click the 👍 emoji on this issue. These counts are used to generally order the suggestions by engagement.
The text was updated successfully, but these errors were encountered: