Greetings Moriyoshi and all,
Are people still thinking about this? And how about applying the
current/revised patch to trunk thus making it easier to play with and break,
but not freeze its features/API yet.
Also the wiki is up again so:
- RFC: https://wiki.php.net/rfc/builtinwebserver
- P
Ben Schmidt wrote:
>>> $var = $arr['key'] ?? : 'empty';
>
> Also note this is possible with the recent proposal Hannes and I were
> discussing. It simply looks like
>
> $var = $arr?['key'] ?: 'empty';
>
> The ?[ avoids notices and the ?: works as it always has.
>
> Ben.
If it was going to be ?[, I
On Apr 15, 2011, at 2:23 AM, Hannes Magnusson wrote:
> 2011/4/1 Hannes Magnusson :
>> 2011/3/31 Pål-Kristian Hamre :
>>> We need access to this repository to commit changes to the infrastructure:
>>> https://svn.php.net/repository/systems/
>>>
>>
>> Verified. He is working on bringing the wiki
$var = $arr['key'] ?? : 'empty';
Also note this is possible with the recent proposal Hannes and I were
discussing. It simply looks like
$var = $arr?['key'] ?: 'empty';
The ?[ avoids notices and the ?: works as it always has.
Ben.
--
PHP Internals - PHP Runtime Development Mailing List
To
I believe describing nullness checking as a "main" issue is a rather
strong assessment.
I don't think so, obviously. :-)
$var = (isset($arr['key'])) ? $arr['key'] : 'empty';
Nullness checking is half of what that code does, isn't it? Otherwise it
would be (isset($arr['key']) && $arr['key']),
On Sat, 16 Apr 2011 03:42:11 +0200, Adam Richardson
wrote:
On Fri, Apr 15, 2011 at 8:46 PM, Ben Schmidt
wrote:
There was also my suggestion of a "checked ternary" operator [see my
previous email in this thread.] Backwards compatible, practical, and
simple.
It doesn't address the main is