Hi
On 10/16/22 23:11, Bob Weinand wrote:
I've written a small RFC about adding coalesce ability to list() destructuring.
This should enhance the ability to easily, concisely and readably destructure
arrays with default values.
https://wiki.php.net/rfc/destructuring_coalesce
<https://wiki.php.net/rfc/destructuring_coalesce>
Unless I missed anything, all the examples in the RFC deal with *absent*
array keys. Can you also add an example where the key is present, but
the value is 'null' to make the behavior with regard to that explicit?
Best regards
Tim Düsterhus
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php