Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111580 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 51795 invoked from network); 17 Aug 2020 13:48:47 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Aug 2020 13:48:47 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 75966180511 for ; Mon, 17 Aug 2020 05:49: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=-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-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 ; Mon, 17 Aug 2020 05:49:40 -0700 (PDT) Received: by mail-wr1-f54.google.com with SMTP id 88so14882824wrh.3 for ; Mon, 17 Aug 2020 05:49:39 -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=eEkygPhZgBKimJkXTa4Y0VHkkstnIXoUC4CT9Z8sqyA=; b=LsjVcQdXk9UqvEbDT4hpXrQw5XTXtJWTPdB+M+WHMVoTPes+7Irzmv6M9x+s9ZKbFj phOeBLfmmsQsTsr8WvBJpOv8i2wLhMvJVoYsORGKLCuNw/67fCPOmOXtMYzOjffi9/9k HvJ0zUZLn3984LMaCNqg4Sy+aXdz8ZczbsxQayjOm+ZxXHq7T/DWIOqjaDvr2fVWbN32 QeJRZWX9BjcJMoAhEgBKYfcR1eqcBbvUPbaoDRdXD3z2845cLMeQSdx/EOII1/SxTqfl 12hYwLy18HrkrSimE6hWY+Kl37sH6Kfj3JBZ/GCbBi0lZFtl/03vlKHaRXHBYYAitO4S SdpQ== 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=eEkygPhZgBKimJkXTa4Y0VHkkstnIXoUC4CT9Z8sqyA=; b=klvcQ0cOedYKU1s64SMGuxqyNryrMJzBlqhc7gzNXhC5Io9oJcOvFYbSqXY+RHrp29 /Fspk7yxLJiBTFwYd+P3UrBBz+GNT+//ihtFcWkH5dtsDlyXTjX49I9+mXS7MXrw3prQ KEJMp0/2vJeDf4uETemhU0WpOAFKOeoQQHetY5A2fD62W5fNepSZazZ/MVSkGbC+O2Jr y1PPJVH7Zu2jcx7VNw0d5+eR+HYsDrFJfcxsqCaNOxgFkqS1+tMH5xM+DPuWLlr8pqNA YJSKTdAVDi+SYJIr8sdUGJrYOKu7aW/wr/fb7cQbAcxiIQA1kYONIPON7+IXTNYaw5YW OcXg== X-Gm-Message-State: AOAM533KoMZhTJrzvgCj0iKDsqoZkbeh/Qj/QIbp1H8fKxnLFsAO1MtN oqDpdCWfRvRy0lf5ZaXG4Sw8Xm36WDFMYHab+Enkcw== X-Google-Smtp-Source: ABdhPJxlOPmnoxEyPRdfbwTURSpCqg2PQ3maCC/ke21ScqTHN8ceoxeYtAwExvX3/pCJHIQrJmqg15ruV6fdGDUG8NA= X-Received: by 2002:adf:dcc8:: with SMTP id x8mr16110905wrm.16.1597668577209; Mon, 17 Aug 2020 05:49:37 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 17 Aug 2020 14:49:26 +0200 Message-ID: To: Peter Bowyer Cc: Derick Rethans , PHP Developers Mailing List Content-Type: multipart/alternative; boundary="00000000000003774205ad123469" Subject: Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change From: kontakt@beberlei.de (Benjamin Eberlei) --00000000000003774205ad123469 Content-Type: text/plain; charset="UTF-8" On Mon, Aug 17, 2020 at 2:29 PM Benjamin Eberlei wrote: > > > On Mon, Aug 17, 2020 at 10:02 AM Peter Bowyer wrote: > >> On Sun, 16 Aug 2020 at 10:29, Benjamin Eberlei >> wrote: >> >>> We have updated the RFC at >>> https://wiki.php.net/rfc/shorter_attribute_syntax_change with what we >>> think >>> covers all the discussion and arguments made in this and the previous >>> mailing list threads. >>> >> >> Thank you for putting in the work it took to revise the RFC. It's good. I >> now understand what the delimiters achieve. >> >> While I don't agree with the first point in "Forcing @@ Attributes to end >> with parenthesis does not solve issues" (in this new syntax I'd ban >> whitespace) I appreciate the point you are making, and it is sensible for >> consistency. >> >> I feel grep'ability has been played down, as unless >> @@ >> MyProject\FooAttr >> >> is allowed (which isn't shown in the codeblock), then it's easier to grep >> for @@.+?Foo and know you have a chance of an accurate match (assuming >> renaming is not used) than it is with the delimiter syntax. >> > > no space is allowed between @@ and name, they have to be in the same line. > The whitespace between name and argument_list is not currently banned, the > comparison is to the status quo (since that is not expected to change). > Correction, I was made aware that this is not true, a space betwen @@ and attribute name is allowed at the moment: @@ MyProject\FooAttr function foo() {} is allowed. > > Still I think the grepability has to rest on no assumptions, because > otherwise you could argue the same for @[] being used non-grouped on one > line and would have to conclude that this is also grepable. > >> >> Sorry to everyone for causing this hazzle. >>> >> >> These things happen. Thank you for taking on-board the feedback and >> working on the RFC. >> >> Peter >> > --00000000000003774205ad123469--