Re: [RFC] Four Pragmatic Directions for PHP: Simplicity, Arrays, Performance, Concurrency
| From: | Dan Liebner | Date: | Fri, 27 Mar 2026 05:26:39 +0000 |
| Subject: | Re: [RFC] Four Pragmatic Directions for PHP: Simplicity, Arrays, Performance, Concurrency | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-130465@lists.php.net to get a copy of this message | ||
>
> On 2026-03-27 03:58, Rowan Tommins [IMSoP] wrote:
> > On 26 March 2026 07:51:31 GMT, Rob Landers <rob@bottled.codes> wrote:
> >
> > - an "optional key access" operator like $foo[?'bar'] that makes the
> intent explicit but concise
>
> So, syntactic sugar for "($foo['bar'] ?? null)".
That, to me, would be a massive improvement in terms of code readability.
On Thu, Mar 26, 2026 at 11:40 PM Morgan <Weedpacket@varteg.nz> wrote:
> On 2026-03-27 03:58, Rowan Tommins [IMSoP] wrote:
> > On 26 March 2026 07:51:31 GMT, Rob Landers <rob@bottled.codes> wrote:
> >
> > - an "optional key access" operator like $foo[?'bar'] that makes the
> intent explicit but concise
>
> So, syntactic sugar for "($foo['bar'] ?? null)".
>