Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86925 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4680 invoked from network); 28 Jun 2015 14:19:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jun 2015 14:19:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=kelerest123@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kelerest123@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.41 as permitted sender) X-PHP-List-Original-Sender: kelerest123@gmail.com X-Host-Fingerprint: 209.85.218.41 mail-oi0-f41.google.com Received: from [209.85.218.41] ([209.85.218.41:33659] helo=mail-oi0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CE/B0-23842-98200955 for ; Sun, 28 Jun 2015 10:19:54 -0400 Received: by oiyy130 with SMTP id y130so102974938oiy.0 for ; Sun, 28 Jun 2015 07:19:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=x7Y2umUA2oxaYxbNJ1/aOvkISFXiHzEky1DwuKu4hec=; b=bz4z/lUc9sVjNZrYiJg7+Phhx8C3jBxZg2ElYf6vjKLxXE8x2HwX3UUi0n8bzy/l3N 0cQav9Jz/9V0B+Hj7FtGpkXcn8XQERae61dOvh4DVsXdNeZSlfKsoVLzb87wuB0Ng56/ TSeFWS9WbQcUDQrMxMRSPyA9A/K7CLqQta66xRfCedxUtMc8le4ttPfSJ28WAdTH/Zo0 MLaC1DACPFRzHManbHBPV/lMneOOtJFFhEY3v3PitGt01xGeb4rq4OgjTKS+tDmICE7n oxs2sRN1rq7nnVMyyolTWCKtjDBHS0BIG5ZrWKKTvLWJoUtmtbCmulM+UYXAsFRwbfXO KEPA== X-Received: by 10.182.16.229 with SMTP id j5mr4882279obd.7.1435501190595; Sun, 28 Jun 2015 07:19:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.109.33 with HTTP; Sun, 28 Jun 2015 07:19:31 -0700 (PDT) In-Reply-To: <5582FCE8.9070108@anderiasch.de> References: <68262FAD-587B-47FF-B388-3B8551FDCA22@cschneid.com> <5582FCE8.9070108@anderiasch.de> Date: Sun, 28 Jun 2015 16:19:31 +0200 Message-ID: To: Florian Anderiasch Cc: Yasuo Ohgaki , Christian Schneider , PHP Development Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Revisit trailing commas in function call parameters? From: kelerest123@gmail.com (=?UTF-8?B?SmFrdWIgS3Viw63EjWVr?=) +1 for allowing trailing comma in every function call. Regards, Kubo2 2015-06-18 19:16 GMT+02:00 Florian Anderiasch : > On 18.06.2015 08:25, Yasuo Ohgaki wrote: >>> If people still consider it more harm- than useful then please don't flame >>> me and I'll shut up again :-) >>> >> >> PHP allows >> >> array( >> 1, >> 2, >> 3, >> ); >> >> therefore >> >> my_variadic_function( >> "foo", >> "bar", >> "qux", >> ); >> >> is consistent behavior to me. > > If variadic functions allow this and normal functions don't (and by most > PHP coding standards you'll format like this all the time because of 80 > chars limit I don't see how this is in any way consistent. It's still a > function call after all and not an array. > > ~Florian > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >