Skip to content

Extend the "bulk values" pattern to Option#349

Open
SimonSapin wants to merge 1 commit intoaembke:mainfrom
SimonSapin:bulk-null
Open

Extend the "bulk values" pattern to Option#349
SimonSapin wants to merge 1 commit intoaembke:mainfrom
SimonSapin:bulk-null

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