God I hate crap software ... TRYING to reply without top post ... but Samsung 
is incapable!

What I was trying to comment on was that trapping that no result is returned 
may be what is needed, so handling the empty array rather than a null return 
just means having to remember what you do use :(

Sent from my android device so quoting is crap ... need to kill these painful 
email clients!

-----Original Message-----
From: les...@lsces.co.uk
To: internals@lists.php.net, Larry Garfield <la...@garfieldtech.com>
Sent: Sat, 30 Apr 2016 19:35
Subject: Re: [PHP-DEV] [RFC] Pipe Operator

However, 
passing an array to array_filter() then passing the result to 
array_map() is always type safe (because array_filter still returns an 
array even if it filters down to 0 items), and array_map on an empty 
array is essentially a no-op, so I'm comfortable doing so, and wish I 
could do so more often with less fugly syntax. :-)


Reply via email to