-
Notifications
You must be signed in to change notification settings - Fork 51
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
Support optional types #246
Labels
enhancement
New feature or request
Comments
What I'm going to try and do is make it so that: (assume
This means that some mixing of the two will magically work but in cases where the distinction matters you have to use the right type. We can document that. |
Merged
This was referenced Aug 13, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We support optional opaques, but we do not support optional primitives and structs. We should; exposing it as
std::optional
in C++ andWe will likely want to do the same thing as #245 where it's automatic when found in parameters, though we will have to require people to use DiplomatOption in struct types.
We could also make it so that you can force opaques into optionals if you really want (currently opaque+optional = nullable opaque)
Status:
I shall consider this issue fixed when Dart, C, and CPP have landed.
The text was updated successfully, but these errors were encountered: