>
> On 2026-03-27 03:58, Rowan Tommins [IMSoP] wrote:
> > On 26 March 2026 07:51:31 GMT, Rob Landers <[email protected]> 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 <[email protected]> wrote:

> On 2026-03-27 03:58, Rowan Tommins [IMSoP] wrote:
> > On 26 March 2026 07:51:31 GMT, Rob Landers <[email protected]> wrote:
> >
> > - an "optional key access" operator like $foo[?'bar'] that makes the
> intent explicit but concise
>
> So, syntactic sugar for "($foo['bar'] ?? null)".
>

Reply via email to