Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89075 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30447 invoked from network); 5 Nov 2015 13:09:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Nov 2015 13:09:51 -0000 Authentication-Results: pb1.pair.com header.from=ppetermann80@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ppetermann80@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.41 as permitted sender) X-PHP-List-Original-Sender: ppetermann80@gmail.com X-Host-Fingerprint: 74.125.82.41 mail-wm0-f41.google.com Received: from [74.125.82.41] ([74.125.82.41:37842] helo=mail-wm0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DC/50-24765-D155B365 for ; Thu, 05 Nov 2015 08:09:50 -0500 Received: by wmll128 with SMTP id l128so13072401wml.0 for ; Thu, 05 Nov 2015 05:09:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ZqZn/ukSOV5Wt1MIVyp6dd6gbUgHpNuqPuE4JpFgMyc=; b=HON2McVF019ULMF9F3L8Bg4r9o10Mp9UGcXnwgcUdBDoNY/zLEN31VcPS4257hBFbN NElV7NIwdobvv0ePRL0bQiZfAUn/vZYuNajtuzZYS6hmpy6aIGxdw00JNhiySaldOCCu uvgBiaGim+j0Ai0ToLaQWBqLSHM93xCVxHDWUSaPKYPHvxqDasCT060Z9fZBpGkbjIQh i7w8wrjMc7NxtmdvKUckgvqbFZczgEvQKrvW8k5yTMCcamOJB4045TPT/QSWWYpyvEQc Dr1gr4W6BTgrBMl587HB4DoOCiUxV0Xs5UVHSTg5DUdmEvlh+txLUFMq0FPY31JI8mUl Vsfw== MIME-Version: 1.0 X-Received: by 10.28.137.194 with SMTP id l185mr3437719wmd.21.1446728986859; Thu, 05 Nov 2015 05:09:46 -0800 (PST) Received: by 10.194.138.162 with HTTP; Thu, 5 Nov 2015 05:09:46 -0800 (PST) In-Reply-To: References: Date: Thu, 5 Nov 2015 14:09:46 +0100 Message-ID: To: Sammy Kaye Powers Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a114421e859210c0523cad756 Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Trailing commas in all list syntax From: ppetermann80@gmail.com (Peter Petermann) --001a114421e859210c0523cad756 Content-Type: text/plain; charset=UTF-8 Hi Sammy, > https://wiki.php.net/rfc/list-syntax-trailing-commas my thoughts on this: 1) having list separators (commas) signals "there is one more item" (thats the semantic meaning of a comma in a list, right?) 2) you are right, arrays vs. other lists behave inconsistent however, if i take those two assumptions into account the solution i get to is not to allow the confusing (and IMHO bad style) of commas at the end everywhere, it is to be more strict about it and disallow it for arrays - which would also be consistent and make more sense (to me), which in return means a more clean and intuitive language. However, that would be a BC breaking change, so not for a 7.1. So my suggestion would be to put this to sleep, live with what we have, and improve (by removing this from arrays) with the next major. best regards, PP -- Peter Petermann ProtonMail: ppetermann@protonmail.com (encrypted / based in .ch) Email: ppetermann80@gmail.com - get my public PGP key from SKS Keyservers PGP Key: http://pool.sks-keyservers.net:11371/pks/lookup?op=get&search=0x0E6DBD675836A5C7 --001a114421e859210c0523cad756--