Skip to content

Conversation

@SimonSapin
Copy link

Value::Array([Value::Null]) now converts to None instead of error.

In the already-documented example of MGET, each item of the array may or may not be Null/nil depending on whether the requested key exists. When the array is known to be of length 1 (because only one argument was used) it can be convenient to convert to a single Option

`Value::Array([Value::Null])` now converts to `None` instead of error.

In the already-documented example of `MGET`, each item of the array
may or may not be `Null`/`nil` depending on whether the requested key exists.
When the array is known to be of length 1 (because only one argument was used)
it can be convenient to convert to a single `Option`
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