Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111514 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 85889 invoked from network); 14 Aug 2020 15:16:32 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 14 Aug 2020 15:16:32 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8AB1E18055E for ; Fri, 14 Aug 2020 07:16:41 -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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (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 ; Fri, 14 Aug 2020 07:16:40 -0700 (PDT) Received: by mail-wr1-f41.google.com with SMTP id f12so8472243wru.13 for ; Fri, 14 Aug 2020 07:16:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beberlei-de.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xebXPiyQTKE6KfpfyBytf3oltc2ATYMtQ0/KDdjC364=; b=DBQP6k/MQz35AxEfNXti8W+t5INrxRz1kOc+bi//FiEhKXtQFwkLhPkyPtylTY35Ec yF5gIpRguMFcgJtDNDqCNMFxF8hy++/icLDxkZ6wTshSPvy+3umIyHyTJBN+Zj/wwzg1 +JZyKBqi0aQ0RooqCR3fUB2LljoUD4X01rwel7wJjMYNwzXnn7DIyIlYajqYMV/OlQUF 1rjpcUGQO3ar+y7aWs1hAph+xcttEqbhT1h8EieQGQBMbOxXkFp0kMO0iDtF53m31LRn 9eLzsROUmfxYVizbqhZQEruJRJGfXDX4OZRQXpErZaIz9NuWlKVHfTj7yrHDFc+fkFba RPYQ== 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=xebXPiyQTKE6KfpfyBytf3oltc2ATYMtQ0/KDdjC364=; b=a1sjQTmvoE6GpbsNieOeEib3ARY6QjdUv8EpT4kZFE9p2K552da6C3BpytNJNNZO2D f2UMfWvVFYFYGmaGZt+seVPpMPavlv8Pehc/16BniY7tlh+Ywy0t+bc9uGVSZEBRlNJ3 cVNvoPWlZDyZ2iv2wwlNXpHOnLU6p53sPkCngqQvz8UOR6KQ/caCciGVbl7gUJySIcHQ b0My4WZW7xjhKF0ql0SRKB2rRz9rPXPXDIP0wROmCNVP/jnDNNFnKWZkbrvoBAVo1R76 +7pRNRyK3NTMUdn7Ue+PnygKJ/KJ5DsQ0g1neToq6DVem6Mn018dgLPb2D+8KaDBXBrG pNQg== X-Gm-Message-State: AOAM531BHpYxCqpU//kdUf7lk41uH4BfDt/QjgpZC/lco5xvrqBraApf VgI880l9ZCToNBf55LwMSHwb6WK+5sVgyUalAU8E9w== X-Google-Smtp-Source: ABdhPJztPjTbGNe8BZ0Bvkt2PXdsATX9jnI19x4edTkc1qnaVQ4xY3STOECBrFZVLgdLYtQ6W7jGDA6iRalnIAaySt0= X-Received: by 2002:adf:edd0:: with SMTP id v16mr3150125wro.271.1597414597276; Fri, 14 Aug 2020 07:16:37 -0700 (PDT) MIME-Version: 1.0 References: <5cc837df-ab47-628a-d29b-46d7933be973@gmx.net> <3A7CECC3-CDEE-4852-BF4B-4EC7CA1BD538@pmjones.io> In-Reply-To: Date: Fri, 14 Aug 2020 16:16:25 +0200 Message-ID: To: Theodore Brown Cc: Levi Morrison , Derick Rethans , "internals@lists.php.net" , Sara Golemon Content-Type: multipart/alternative; boundary="000000000000a14fea05acd711c7" Subject: Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change From: kontakt@beberlei.de (Benjamin Eberlei) --000000000000a14fea05acd711c7 Content-Type: text/plain; charset="UTF-8" On Fri, Aug 14, 2020 at 2:22 PM Theodore Brown wrote: > On Thu, Aug 13, 2020 at 8:41 PM Levi Morrison > wrote: > > > > So, a week+ early, then? Surely that means the current vote null > > > and void, to be reset entirely following a proper discussion period > > > -- one without concurrent voting. > > > > I just want to make sure I understand: there are people who think we > > haven't discussed the syntax for attributes yet? > > > > I assume this is a serious email, but I can't fathom why anyone cares. > > We've discussed this subject soo much... > > Hi Levi and internals, > > There's certainly been a lot of discussion in general about > attributes. However, there was not a reasonable opportunity to either > discuss the specific arguments made in this RFC (e.g. the lack of a > closing symbol being inconsistent), or submit patches for alternative > syntaxes as Derick requested when he put up the RFC for discussion. > > I was very surprised that it went to vote less than six days after > the discussion period started, right after the weekend no less, > before I had a chance to submit my patch to include the @: syntax. > > I'm as weary of the discussion as anyone, and would like to see > closure on this topic sooner rather than later. But if the voting > rules aren't followed, how can the vote result be considered > legitimate or binding? > > If the authors sincerely want the best outcome for the language (and > I assume they do), what harm is there in deferring the vote until the > discussion period has completed, and ensuring that the RFC addresses > the arguments on both sides and contains all the relevant information > for making a decision? Otherwise many contributors (myself included) > just end up feeling unheard, unhappy, and unconfident that the right > choice is being made. > > With this in mind, I'd like to respectfully make the following > requests: > > 1. Defer voting until the two week discussion period is complete > (Tuesday, August 18). > What do you mean by defer exactly? Stop voting or reset the vote? We were thinking of extending the vote until September 1st. > > 2. Include a ranked voting option for @: and mention its pros and > cons (it is equally concise as @@ with no BC break, but is somewhat > harder to type). Patch link: https://github.com/theodorejb/php-src/pull/1 > I am wondering where @: is suddenly coming from? It wasn't discussed in both shorter attributes RFC and the discussion leading to this RFC. There were a few other suggestions like $() or "using attribute", but none of them was followed up upon. Nobody replied to my or Dericks message with a specific interest in actually contributing another patch, including @: > > 3. Add a Backward Incompatible Changes section with examples of the > code that the different syntax options would break. > Derick and I are working on this section to update the RFC later today. We didn't consider this relevant, because the mitigation steps for all of them is the same: a project wide search and replace to insert a space Code search across open-source showed that the number of occurrences vary, but are all extremely low. In addition all BC breaks are clean cut and lead to a fatal error that is unlikely to go undetected when upgrading to PHP 8 (specifically in contrast to the number conversion RFCs BC breaks). > 4. Add a Discussion section briefly summarizing the arguments that > have come up on list. In particular this should include: > a) Tyson's examples of #[] changing the meaning of code in > unexpected ways between PHP 7 and 8 (e.g. a parameter > attribute would remove the parameter when run on PHP 7). > This is also included in the update, but ultimately is covered by the explanation for "Forward Compatibility" already mentioning that it does only work with a subset (and hence does not work for some other subset). b) An example of the downside of grouping, where it causes > unnecessary diff noise when adding or removing a second > attribute on its own line. > This is a problem for coding styles to solve and is nothing the RFC should be concerned with. Grouped syntax specifically includes support trailing commas. Diff noise is something all declarations with optional elements can cause, even use of @@ in one line can be "forced" from single to multi lines creating diff noise under reasonable Coding Standard assumptions. As such I don't want to add coding style considerations at all, because everyone is free to make them on their own anyways. I'd be willing to help draft this section if the RFC authors so desire. > > Derick and Benjamin (and Sara), are these requests reasonable? If the > RFC follows the discussion period rule and contains all the relevant > information, I will be much more confident that it is resulting in > the best long term outcome (and I think this would speak for many > others on list as well). > > Sincerely, > Theodore --000000000000a14fea05acd711c7--