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

Map should not allow null keys #43

Closed
rtheunissen opened this issue Aug 30, 2016 · 0 comments
Closed

Map should not allow null keys #43

rtheunissen opened this issue Aug 30, 2016 · 0 comments
Assignees
Labels

Comments

@rtheunissen
Copy link
Member

The main reason for this is to be able to indicate an invalid key. For example, Map::find(mixed $value): mixed $key would be ambiguous if either false or null indicates that a key could not be found. It doesn't make enough sense to have a null key, so we should just disallow it entirely and throw an exception when a null key is used.

@rtheunissen rtheunissen added this to the 2.0.0 milestone Aug 30, 2016
@rtheunissen rtheunissen self-assigned this Aug 30, 2016
@rtheunissen rtheunissen removed this from the 2.0.0 milestone Jul 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant