-
Notifications
You must be signed in to change notification settings - Fork 159
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
Distinguishing nested optionals #146
Labels
Milestone
Comments
The reason for this is a design flaw in the current compiler, which treats optionals very differently from other types when boxing, which is also the reason why casting to optionals is currently not possible. You're right that this behavior is strange and unexpected. I will look into improving this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consider this example program:
I create a dictionary of optional integers. The code above can't distinguish between "Not present in the dictionary" and "The value is 🤷". What is the proper way of achieving this?
The text was updated successfully, but these errors were encountered: