> Am 03.11.2022 um 20:55 schrieb Tim Düsterhus <t...@bastelstu.be>:
> 
> 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

There was actually one line saying ... if  $array[0] is null or does not exist, 
but I've added a more specific example under use cases.

Bob
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to