Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109619 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 76451 invoked from network); 14 Apr 2020 12:30:42 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 14 Apr 2020 12:30:42 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 957B81804DD for ; Tue, 14 Apr 2020 04:00:18 -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=-0.5 required=5.0 tests=BAYES_05,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-ASN: AS15169 209.85.128.0/17 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 ; Tue, 14 Apr 2020 04:00:17 -0700 (PDT) Received: by mail-wr1-f41.google.com with SMTP id h9so13784344wrc.8 for ; Tue, 14 Apr 2020 04:00:17 -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=jVL8SnbYgHCk8CDt4DccyW/wjhiCE1H9yb7xjqgFJq0=; b=uQUAHQXeQ+ZD7YH5/Edq68qSChcHkijW4Zv7c88eIelA6Hlw5hMVb1QmUcI/8v/zzG X13dO2x/d3D48ZvSwbZNQtGGcr8Dm0+3b8/YBZ9voXbdU3KH28U1OrBQge5PtesKX9Ix J1Mo2cTE2ER9Ka6RNPbN8rOIfTGRDv/bF+VF/LiE5hIF5gA2UgLdbK9+LXO7MFUjq50Q eMFy+ix6adUMbm1gz4q21zgCBNamGmYXRRRIGTxZAWWkzWCvTILTIqSYJJkMa0TVYLJn vn3mYzwhHaHh/+MmXoZimOxoI7mIZy7v4NO3pjpDZ/RgrCelOKLeMPq2IKrCAFxikWAh Xbbg== 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=jVL8SnbYgHCk8CDt4DccyW/wjhiCE1H9yb7xjqgFJq0=; b=BTZ3RQe5+c7pBPK/uap0TKoT10ndBPjyYKl+qyZvKW8pjFxoe7Pcef/zXygA5b7mVz LlPgN7l4h2qjf3OPLYvStJgW4cVexBZhVLf5AtdigW5xMJeaRZq6+2P1us66cMtU3weR df4Mf2whDcL83zwXU49Qlpi1o8f5tmGS8Gh94HvkXhbiNtsKgfxFZ1VkLdUC9a5gQ21A qDzRO/U23N0sMgtnVoj2u2wei1DFIN3qyflSLZzxuwtDl2njkN3hMRnE7Fp6l4G00urm sPCfPJGmxgxwikmZiuo44lp6Sj9ibxjC3HumRfFEz8pBYeySIa3GAMCG6hi1WjYe0InQ Vz9w== X-Gm-Message-State: AGi0PuZbCOvgPWI1hJDrjGk8k7YNFNaXeif2uo9rvKSa+OtuNcUuMH2a cp8Vza12mDHjdpljW2epCQQPB70By6Tq7DU2jLG3S5P4k8ow+A== X-Google-Smtp-Source: APiQypIdJhEJE+IlEKC5aM5i9sLv/BO6LY5eaQcdvtzaEnPbmmdu9O2z8/yMHYeJwKgqXrmwWgg0z/5enWJnI8FQ2pY= X-Received: by 2002:a5d:4b90:: with SMTP id b16mr13336286wrt.16.1586862013021; Tue, 14 Apr 2020 04:00:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 14 Apr 2020 13:00:01 +0200 Message-ID: To: PHP Internals Cc: =?UTF-8?Q?Martin_Schr=C3=B6der?= Content-Type: multipart/alternative; boundary="00000000000098108b05a33e1ad8" Subject: Re: [RFC] Attributes v2 From: kontakt@beberlei.de (Benjamin Eberlei) --00000000000098108b05a33e1ad8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi everyone, I have updated the RFC with much of the feedback received here, on Twitter and Reddit. https://wiki.php.net/rfc/attributes_v2 The following changes were made: - Changed to support the same attribute multiple times on the same declaration - Added support for attributes on method and function parameters - Replaced *PhpAttribute* interface with an attribute instead - Distinction between userland and compiler attributes and description when each of them gets evaluated/validated - Reduce number of examples to shorten RFC a bit and expand the other examples instead - Introduced validation of compiler attributes at compile time using a C callback - Offer alternative syntax =E2=80=9C@:=E2=80=9D using new token T_ATTRIB= UTE which will be included with a secondary vote You may have seen me mentioning that I don't want to deviate from the <<>> syntax, a topic of heated debate. As Martin helped me tremendously with the RFC and patches he earned to propose an alternative (including patch with prototype). So we will have a secondary vote on syntax being either <> or @:Attribute. Let us know what you think about the changes. greetings Benjamin On Mon, Mar 9, 2020 at 3:42 PM Benjamin Eberlei wrote= : > Hi all, > > I want to resurrect Dmitrys Attributes RFC that was rejected for 7.1 in > 2016 with a few changes, incorporating feedback from the mailing list bac= k > then and from talking to previous no voters. > > The RFC is at https://wiki.php.net/rfc/attributes_v2 > > A working patch is at https://github.com/beberlei/php-src/pull/2 though > work around the details is still necessary. > > The RFC contains a section with common criticism and objections to > attributes, and I hope to have collected and responded to a good amount > already from previous discussions. > > There is also a fair amount of implementation detail still up for debate, > which is noted in "Open Issues". I have pre-committed to one approach, bu= t > listed alternatives there. On these issues I am looking for your feedback= . > > greetings > Benjamin > --00000000000098108b05a33e1ad8--