Re: [RFC] Default expression

From: Date: Sun, 25 Aug 2024 02:41:27 +0000
Subject: Re: [RFC] Default expression
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-125200@lists.php.net to get a copy of this message
> > On Aug 24, 2024 at 5:16 PM, <Rob Landers (mailto:rob@bottled.codes)> wrote: > > > > I'm not sure what you mean here. I use this method all the time :) much to the chagrin of > some of my coworkers. > > > > function stuff($foo = 'bar', $baz = 'world'); > > > > stuff(...[ ...($foo ? ['foo' => $foo] : []), ...($baz ? ['baz' => > $baz] : [])]); > > And you are one who complains about gotos! 😲 -Mike

« previous php.internals (#125200) next »