Re: [PHP-DEV] [RFC][DISCUSSION] Allow default value in list() syntax

2017-08-10 Thread Devnuhl Unnamed
Would isset($suffix) not suffice here? There are several things I've thought of that would be other alternatives to changing this language construct, but as I don't have my laptop with me, some of the testing to confirm behavior will have to wait. Other concerns fall around list() already being a

Re: [PHP-DEV] [RFC][DISCUSSION] Allow default value in list() syntax

2017-08-11 Thread Devnuhl Unnamed
> On Fri, Aug 11, 2017 at 12:01 AM, Devnuhl Unnamed > wrote: > > Would isset($suffix) not suffice here? > > You mean like so? > > list($prefix, $suffix) = explode(':', 'string_without_suffix'); > if (!isset($suffix)) { > .. > } > > The