Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111598 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 37950 invoked from network); 17 Aug 2020 22:55:19 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Aug 2020 22:55:19 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 65D4818050B for ; Mon, 17 Aug 2020 14:56:20 -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,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from smtp.simply.com (smtp.simply.com [94.231.106.220]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 17 Aug 2020 14:56:19 -0700 (PDT) Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by smtp.simply.com (Simply.com) with ESMTPSA id 4BVntV1ml4z62St for ; Mon, 17 Aug 2020 23:56:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=givoni.dk; s=unoeuro; t=1597701378; bh=awrhneU6zKSDeTsou4ThupdUiOqnGS1Fk8SJnJgeb8U=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Cm7nAERzQKioc+PYBtTvutw5EcEjzbzEE4b040MyqYmJ5qnwoaPVcpBEXjgnbGCgq sL74rfPdedaw6Ou4z1+560cHD58XAMPzx/zeat4ONcCEZA8H33wwRH9hUl0NtMpeM+ yFzUmoOZCtRkk6OwSLdYQeSFl0p7n0g/hjg8cfS0= Received: by mail-wm1-f46.google.com with SMTP id k8so15158388wma.2 for ; Mon, 17 Aug 2020 14:56:18 -0700 (PDT) X-Gm-Message-State: AOAM533K+ZDRXSZgFVdLcom7BOiLNXszfrFtMNVd6cQef+9UzjvYC35n MsIT/CPrXuV/fCJ62mIrFu6WBjrsHzJlJMSqFoY= X-Google-Smtp-Source: ABdhPJxpMroXewdG7wyqCCx0/f2aJTRtT9PJGzA60ud+CW4a9BqC43iZFeLg8YFbNcVLylbz/88U44krA9AW7bvub80= X-Received: by 2002:a1c:e304:: with SMTP id a4mr16134890wmh.11.1597701377775; Mon, 17 Aug 2020 14:56:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 17 Aug 2020 23:56:06 +0200 X-Gmail-Original-Message-ID: Message-ID: To: Benjamin Eberlei Cc: Derick Rethans , PHP Developers Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Shorter Attribute Syntax Change RFC 0.2 From: jakob@givoni.dk (Jakob Givoni) On Sun, Aug 16, 2020 at 11:36 AM Benjamin Eberlei wro= te: > > We have updated the RFC with all (hopefully) of the feedback from this > discussion: > > https://wiki.php.net/rfc/shorter_attribute_syntax_change > > Most notable changes are: > - A new section with several subsections on the benefits of a closing > delimiter / enclosing syntax. > - A section on grouping pro/cons > - Inclusion of @: as per Theodores request > > We are looking for further feedback from the community. > From the updated RFC: > There are multiple reasons why we believe the previous vote should be rev= isited: Ok, bring it on! > At the point of the vote for @@, it was not clear that the syntax require= d the namespace token RFC to be viable. > While this is not a problem anymore, the @@ syntax might not have come ou= t on top if this information was known beforehand. If anything, this is an argument AGAINST this RFC. A "bad" decision was taken. The problem with it was fixed. No need to change anything. The argument comes across as disingenuous, I'm afraid. Moving on... > The #[] syntax provides the benefit of forward compatibility, but this al= so introduces some potential problems for PHP 7 code. > An alternative syntax @[] was suggested to eleviate these problems which = was not previously voted on. Ok, let's analyze the logic here as well: #[] lost the vote. #[] would have had some problems. Are there any syntaxes we still haven't voted on? Yes! Come on... And lastly... > We argue why we should strongly favor a syntax with closing delimiter to = keep consistency with other parts > of the language and propose to use #[], @[], or the original << =E2=80=A6= >> instead. This is the only part that contains logically valid arguments, albeit most are subjective and speculative. Which is not to say it's not worth voting on them. But looking for actual facts, I only came across only this little cutie: > For VIM users, the % operation to jump between opening and closing part o= f declaration that would automatically work with [ and ]. I fully expect all 3 VIM users to vote in favor of this RFC ;-) Ok, enough of my sarcasm - I only wish you'd put your strongest arguments first and focused on quality over quantity. - Jakob