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

Nonexistant keys should return null rather than false #7

Open
bshaffer opened this issue Sep 18, 2014 · 1 comment
Open

Nonexistant keys should return null rather than false #7

bshaffer opened this issue Sep 18, 2014 · 1 comment

Comments

@bshaffer
Copy link
Contributor

What is the reasoning for returning false rather than null for a call to retrieve() for nonexistant keys?

I feel like exists should return false, but actually requesting the key would more appropriately return null

@garyr
Copy link
Owner

garyr commented Sep 18, 2014

I couldn't say. I wrote it almost 2 years ago. If you feel there's a better way, submit a PR

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

No branches or pull requests

2 participants