Re: [RFC] anti-coalescing-operator

From: Date: Fri, 25 Oct 2019 00:43:53 +0000
Subject: Re: [RFC] anti-coalescing-operator
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-107685@lists.php.net to get a copy of this message
> On Oct 24, 2019, at 8:03 PM, Andreas Hennings <andreas@dqxtech.net> wrote: > > On Fri, 25 Oct 2019 at 01:28, Sara Golemon <pollita@php.net> wrote: >> >> https://wiki.php.net/rfc/nullsafe_calls > > ?-> is a great idea. Totally agree, that would be nice. > The problem is this only works for method chaining, not for function > argument nesting. > So we might want something else in addition to that. > > foo(bar(baz() ???) ???); I am confused about this. Why would this be needed? In case the functions baz(), bar() or foo() do not exist? Please help me see what I am missing. -Mike

« previous php.internals (#107685) next »