Re: RFC proposal for alternative list syntax

From: Date: Sun, 27 Dec 2015 23:20:40 +0000
Subject: Re: RFC proposal for alternative list syntax
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-89901@lists.php.net to get a copy of this message
Hi! > // With the new array syntax this has been improved to > > list ($a, $b) = [1, 2]; > > // I think this new syntax should logically extend to > > [$a, $b] = [1, 2]; list() and array() are two different language constructs, using the same syntax for them is a bad idea. -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#89901) next »