Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111618 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 2621 invoked from network); 18 Aug 2020 22:18:21 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Aug 2020 22:18:21 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 955F618053A for ; Tue, 18 Aug 2020 14:19:35 -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 ; Tue, 18 Aug 2020 14:19:34 -0700 (PDT) Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 4BWP1d5Ngrz62yM for ; Tue, 18 Aug 2020 23:19:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=givoni.dk; s=unoeuro; t=1597785573; bh=E4JIMZ/5Qvb/jMte8vKPN6MQPctRfyuSclOLOe5CHaA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=aVTuv+JCs21bF/Pd+yTZ4dfsxAdLSo90EdGI9Xm1/UftBHSFuhNeBZ/67X2bLV788 5DEmKJsonm+bAc385FDKa/x3Uo+X49NoXGFYuBEtz1xqumsNpRjGmB2dFhuW/HWmDn EgfyPp9tXfJW4yR4KA22VtwhRsRP9Af+fJpBelJA= Received: by mail-wm1-f45.google.com with SMTP id k8so244345wma.2 for ; Tue, 18 Aug 2020 14:19:33 -0700 (PDT) X-Gm-Message-State: AOAM532MHPFzgWoPzmwq0rVCjMVM+QsYe/fneJUx0vmhiFlTo5NX7JPz KErByi0TQI/dZ5zo0+ETnsWI3tC0Neav1Da0lbk= X-Google-Smtp-Source: ABdhPJwQ6Xtkxtdzt9B+zkEVa11nTxf4k4wP3SC7+ITMzYafPjrWZIhEjqTBUJssxycFob8KB9EcCtVcgi7S70VWUp4= X-Received: by 2002:a05:600c:22c8:: with SMTP id 8mr1547707wmg.143.1597785573339; Tue, 18 Aug 2020 14:19:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 18 Aug 2020 23:19:22 +0200 X-Gmail-Original-Message-ID: Message-ID: To: Benas IML Cc: Benjamin Eberlei , 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 Tue, Aug 18, 2020 at 12:04 AM Benas IML wrot= e: > >> >> From the updated RFC: >> >> > There are multiple reasons why we believe the previous vote should be = revisited: >> >> Ok, bring it on! >> >> > At the point of the vote for @@, it was not clear that the syntax requ= ired the namespace token RFC to be viable. >> > While this is not a problem anymore, the @@ syntax might not have come= out 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. > > And then boo-yah, 6 months later we want to implement a cool new feature = to attributes > (a lot of examples were said before, ain't repeating myself) but we can't= :(( because there is no ending delimiter and thus, we will run into parsin= g issues. > Don't really understand how that is a response to my argument. However, I understand your opinion, I just find it hard to find convincing evidence in support of it in this RFC. >> >> Moving on... >> >> > The #[] syntax provides the benefit of forward compatibility, but this= also introduces some potential problems for PHP 7 code. >> > An alternative syntax @[] was suggested to eleviate these problems whi= ch 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 > > > What problems? Besides the BC breaks that all of the syntaxes (except `<<= ...>>`) have, there are no problems. > I'm just quoting the RFC here, then paraphrasing. If you want to know what "potential problems" #[] introduces for PHP7 code, you'll have to ask the authors of the RFC. >> 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 par= t of 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. > > > I wish someone actually gave reasonable arguments as to why `@@` is bette= r. Because a) no one cares if we have to type 2 or 3 characters b) `@@` doe= s not ensure 100% safe future c) it does not decrease complexity in any way= . > @@ already won the vote. The burden of proof for superseding the popular vote should be on the RFC authors. But for the record, I visually and mentally like all the examples with @@ more than their block-syntax counterparts. As I said previously; without hard facts, it's just a subjective matter. If I'm a weirdo for actually liking @@ I'm not sorry :-D Best, Jakob