Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109577 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 41304 invoked from network); 9 Apr 2020 11:22:17 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Apr 2020 11:22:17 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 625D71801FD for ; Thu, 9 Apr 2020 02:50:40 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 9 Apr 2020 02:50:39 -0700 (PDT) Received: by mail-lj1-f179.google.com with SMTP id q22so7037709ljg.0 for ; Thu, 09 Apr 2020 02:50:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kyMriA0IL8t16GYzhJMqRkQ+ELddcWJ+BecSXEf3Cqc=; b=lqLr3FuJ6tnGlyBvAuIZsf9T0ZQcBsrm6hWH5GM+K5QIxtcbxnoGehvwmrSQ3ANphc 8ld54ip+I8Rp6GVGivx3YYZQRo56/RUAlvEfWL7jc08pqC+DVVLdKSOEDLWZmBGf7SIa xlWfgNj8SlLzh5hQeG+j07yVHMRspiUgHxgducv9GmatibIx+CWewe0Td57HImzd3WUu mlmtiZzPPPOp0NI3MAtAysC6jnauodBmjttbEuL5riu8Y/1r54/7B5vRgg20uRqu8ZA7 PuwarUDRWU2tpBWUAFCfiNlKUf6numSEKH8CCKD5pyLmlbMoajd4YZzidHX9Qmdo5oAa eI8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kyMriA0IL8t16GYzhJMqRkQ+ELddcWJ+BecSXEf3Cqc=; b=tqRTnjZoMF78d9LfHuPaL5ifYLuzZ1sr+bl9rfwvyznmF8PgHpdg3RjLbVj3YF/V7l yJnSYmI9EAkOFjzMIx6E2EHJxLGG3cGzX6PID6KWwIN5WMW1rIbpAKa3eMU94fBCIKwB AHnCh1tKERtZnlPYej3cKSTisRH00r8a7mXKUh5hQdMnOyu4FyaMqY74VfCcXUiiIXXV POKxRTRF2/JNN9W+oJZW5/ZpLFNpQWtgLO7RXycls2nesVIvtx8gToe4DHRxIrg/xYIg swpj097W4l4qqVh18dRg93UrN+RsAYPZLDNoaqR1JBvkSGxBlE/dnADhyDhaZqrFidFL 5cCg== X-Gm-Message-State: AGi0PuYsCgjHTuNJN2APOw8/uAhydOu3RnHM+WBHkJ8yE+3eWTvCJsFj dGaSr5Ta53fubnDWUPSKgD/iyuNtCzJFu/8Svg== X-Google-Smtp-Source: APiQypKKXflcJ7PF1BLZWLkHOEEscLmmOJRXDGZtGF8X79s5K5difzdc1mRoQ1ZYMqsxYy2IpQT5mXlsmC6d4zCCtLY= X-Received: by 2002:a2e:9013:: with SMTP id h19mr7722217ljg.101.1586425837638; Thu, 09 Apr 2020 02:50:37 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 9 Apr 2020 11:50:27 +0200 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Re: [RFC] Allow trailing comma in parameter lists From: guilliam.xavier@gmail.com (Guilliam Xavier) On Thu, Apr 9, 2020 at 10:02 AM Nikita Popov wrote: > > On Thu, Mar 26, 2020 at 7:52 PM Nikita Popov wrote: > > > Hi internals, > > > > This has been declined in the past, but I just keep making this mistake, > > and believe it deserves reconsideration... > > > > https://wiki.php.net/rfc/trailing_comma_in_parameter_list > > > > Heads up: I plan to move this to voting tomorrow. Don't think there's much > to discuss here... > > Nikita Hello Nikita, I'm personally favorable, but since some concern has been raised that it *might* be interpreted as "encouraging" functions with many parameters (and I fear that could be taken as a motive for voting "no"), I would just suggest (again) that you could add an example (or even replace the current one) of a function with only two/three parameters that would still exceed 120 columns if on a single line (with e.g. descriptive names, [union] type declarations for parameters and/or return, and/or a class constant as default value for the last parameter, that's not so uncommon)... Just my two cents ;) Best regards, -- Guilliam Xavier