Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111544 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 55613 invoked from network); 16 Aug 2020 00:00:23 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 16 Aug 2020 00:00:23 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 431711804D2 for ; Sat, 15 Aug 2020 16:00:52 -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-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 ; Sat, 15 Aug 2020 16:00:51 -0700 (PDT) Received: by mail-wm1-f53.google.com with SMTP id f18so10730905wmc.0 for ; Sat, 15 Aug 2020 16:00:51 -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=IgtAVZxiXAAKjSjgAmcVJM4E+NEbT9f7bbFTMPClrDE=; b=bhDjqOyaBlLX9tKgrbq/N8sdEULKN+hMw9QW/UF7+PQrOMVoHezUCTnS73iwHQBeAp we+uMwOqltVS+EgxXGPrr0KFjr+gldsyUDhh2a+0lsrKJqlK4bT26jyM0CzWjAKKkYTP 6X0/3lTYHUCidGnh+bFxB4K1li8s4LsMZgYAbMEcMbTyYIwSPpkU7JvcSukEOJ9QcHZe VoFhUI32IV22p6c4+lLo/zXdYpoH82ru1SEJQirObIQxEqws5SP1pSGNTBuTslnLGOFn ApJ+5B2yoTHkI4qcirxk4E94sok3m+a0VSXUEQprRhKr6b5dJxscoGQFlf2hc+Itz59m GwPw== 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=IgtAVZxiXAAKjSjgAmcVJM4E+NEbT9f7bbFTMPClrDE=; b=M8JvoXgUmW1CT53qbST80JokfTlLbUgNhWqBEHxP2Tm8PsdbOzSlvM3Y1KKCEpAUCj B1y3hvbKIC8NS1sQ0BtDJ1RQWGdsPzVh631duTJCPYiTWxxCcKvM3M6KjePXrPAIod6G 9m7oGO89tgTTREVqRsElbVG2fXUaMTQeyslJcm1nWysdvt+hacyz8UkVKFSHhCKrIHQF we5dIlSkdeL3wSB4jkvmf8cBxYngWk2v+znob+weh5Dzst4hErbX1qd1cONLMU0sQC2n KXve3gA4aN6+dK/xzy+lVfD90GEnGN/n+bECMfgAbChCeWt/D62WELPcdC5XfyHx+vIO Kgeg== X-Gm-Message-State: AOAM533Gr5HL21OwatpB1Z+m7Vz34iOYrtVpzwEAF/2CoFx5TP2fkxs1 4jhBn2JTkdKYsWoNHpBfFlZ/ZnjeIDxTEXP58421qQ== X-Google-Smtp-Source: ABdhPJzeke8J786nMCKFg5xnotlhUToqtp5lfp7uzP/RASpP9FfTEobKThw2YJqxq4JQu7/8ZoLTITRE91kZqZi3p5c= X-Received: by 2002:a1c:b7c2:: with SMTP id h185mr8997365wmf.168.1597532446534; Sat, 15 Aug 2020 16:00:46 -0700 (PDT) MIME-Version: 1.0 References: <5cc837df-ab47-628a-d29b-46d7933be973@gmx.net> <3A7CECC3-CDEE-4852-BF4B-4EC7CA1BD538@pmjones.io> <7d6c42a4-53cd-5e38-4ffc-02fe490d66a3@gmx.net> In-Reply-To: Date: Sun, 16 Aug 2020 01:00:33 +0200 Message-ID: To: Jakob Givoni Cc: Benjamin Morel , =?UTF-8?B?TWljaGFlbCBWb8WZw63FoWVrIC0gxIxWVVQgRkVM?= , PHP Internals Content-Type: multipart/alternative; boundary="000000000000fe44d805acf28158" Subject: Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change From: kontakt@beberlei.de (Benjamin Eberlei) --000000000000fe44d805acf28158 Content-Type: text/plain; charset="UTF-8" On Sat, Aug 15, 2020 at 11:47 PM Jakob Givoni wrote: > This will probably be my only contribution to this thread so I'll keep > it simple: > > Am I in favor of a revote? Yes > Can I vote myself? No > Do I think a revote will change anything? No > Have there been any good arguments for why attributes need an ending > delimiter? No > > The RFC says that > > The main concern is that @@ has no ending symbol and it's inconsistent > with the language > > that it would be the only declaration or statement in the whole language > that has no ending termination symbol. > However, it's clear that attributes are neither a declaration nor a > statement, but metadata about the thing that follows them (unless it's > more attributes or comments). > The ultimate proof of this is that a semicolon after an attribute is > illegal. > I would like to chime in here since this argument is made over and over again, even though it overlooks an important point. when we say that attributes are just metadata, then let's compare them to docblocks with *are* always enclosed in /** and */ instead of visibility keywords. This comparison is fair, because doc comments are often multi line and attributes are as well. When doc comments are single line, they are also enclosed. Whereas a comparison with visibility modifiers that are *just* tokens that *always* are followed by a T_WHITESPACE is apples vs oranges, because @@ attributes can be followed by a large set of different things: @@Foo @@Bar // ends due to T_WHITESPACE with " " @@Foo // ends due to T_WHITESPACE with "\n" @@Foo() // ends due to ) @@Foo () // ends with ), the T_WHITESPACE between class and arguments is valid @@Foo@@Bar // ends due to new T_ATTRIBUTE @@Foo()@@Bar // ends due to ) @@Foo ("bar") // ends here in the second line at ) function a_function() { } We are working to integrate our arguments in favour of enclosing from that Derick and I made in this and the previous thread into the RFC at the moment, as the lack of them is a valid point of criticism. Additionally, Derick and I are waiting for word from Sara and Gabriel at the moment, but we suggested to close and reset the vote to wait until the discussion period is over on Tuesday to accommodate the criticism of us prematurely starting the vote (by accident, not intentionally). We will take the time to update the RFC with all discussions from here and the previous thread with arguments that have come up. > Do I think attributes need an ending delimiter? No > Would I prefer the @@ syntax? Yes > Do I think @@ is ugly or difficult to type? No > Is it just a subjective matter of personal taste? Yes > Is this whole discussion almost entirely a subjective matter? Yes > Is this email thread, the RFC, the voting and the discussion about > extending it a farce? Yes > Do I mind waiting until 8.1 to have attributes so that it can be done > right? No > > Godspeed! > > Best, Jakob > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > --000000000000fe44d805acf28158--