Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89901 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47074 invoked from network); 27 Dec 2015 23:20:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Dec 2015 23:20:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.53 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.53 mail-pa0-f53.google.com Received: from [209.85.220.53] ([209.85.220.53:36577] helo=mail-pa0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 16/6F-51216-E4270865 for ; Sun, 27 Dec 2015 18:20:47 -0500 Received: by mail-pa0-f53.google.com with SMTP id yy13so9029649pab.3 for ; Sun, 27 Dec 2015 15:20:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=HiXkb2qmiKhFaa9AR9R6LOWSZ+bDs2CmxsvTmUekPqQ=; b=Dq1eubvO3NvyfqLnpY3dFaZ07ksmLLuZkLEcpWMpgRl9OK923MFHs/XaoFzLbCGewI /KdUtUILsNvRM4hCVkLd8GGOQwtK/vivtyqQHT0Rb28jqnIOqbt7ZAJTGpF7swQEaDMx WqQ+VQdsTu+DT9xiC6OHXNHAxLi6PqGJpka0l0sP2aD0kfCQ28Yw67TioZxGSK6a56OF je1bpbjDPQmyr7Tmv3G+/SWChWadaFioKnILJ3rRC30fPfnEZSthdqL+NkCJJKWIMmMM cwSTQ/GddXutWo3yeMdVJmAy1MnkyJhyTOB5NuqUD0kiFffHPvY+KQTm3c7OtbJUwT3k Vbiw== X-Received: by 10.66.252.6 with SMTP id zo6mr8196085pac.154.1451258443538; Sun, 27 Dec 2015 15:20:43 -0800 (PST) Received: from Stas-Air.local ([2602:304:cdc2:e5f0:f036:7f0d:a3bf:2fcb]) by smtp.gmail.com with ESMTPSA id kk5sm60587913pab.16.2015.12.27.15.20.42 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 27 Dec 2015 15:20:42 -0800 (PST) To: Julian Rhind , "internals@lists.php.net" References: Message-ID: <56807248.4060609@gmail.com> Date: Sun, 27 Dec 2015 15:20:40 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RFC proposal for alternative list syntax From: smalyshev@gmail.com (Stanislav Malyshev) 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