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

Add the throwWhenMissing option to the configuration #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

acecilia
Copy link

This is a first look at the #69 issue.

With this PR it is possible to enable throwing when a box is empty, which means either the key is not in the context, or the key is in the context but its value is nil.

What is really my intention is to only throw when the key is not in the context, but I am having difficulties finding a way of telling when an empty box is due to the key not being in the context or its value being zero. I could use some direction here.

Is this something that you would like to merge?

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 this pull request may close these issues.

1 participant