Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108975 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 28954 invoked from network); 11 Mar 2020 12:31:28 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 Mar 2020 12:31:28 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id F11461804C6 for ; Wed, 11 Mar 2020 03:52: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,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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-il1-f170.google.com (mail-il1-f170.google.com [209.85.166.170]) (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 ; Wed, 11 Mar 2020 03:52:35 -0700 (PDT) Received: by mail-il1-f170.google.com with SMTP id e8so1507019ilc.13 for ; Wed, 11 Mar 2020 03:52:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1gBJXHwMpO5GnwnHQMsQrC3u1JVN/xy1v6Sxgg6NVIU=; b=bd05zpEIZ3jiDXZwmBp3NhmzvM04moLcOFaxd74bp094qnv5JxWB3JB1RvxAZ//Y7Q v2HoWXK69Nhq28N62YwMbDZ4HkdFZ2L2iRPj51DFv6T6/a029iUwBVczJ+HTvglkfcya 9eedxtvfTUBHsrHkEKgpWURxfBw8AKQDKnhCx8c2BLFWPl2P/nc6SNJEOeQC4Pq2ZN6/ 4EDbUAWJb/WezDeF/4TmLAizm8svg5uLqhGVf2ow4dz9dxY/9OUKTD32saLL0vCRWFiK PjSWOxMrLTivJVkRIkv8oe+UXXz7BXeQzbFjnu5naWUtIHpWUfY1nFDo2D+QvuxzvhEW kygw== 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=1gBJXHwMpO5GnwnHQMsQrC3u1JVN/xy1v6Sxgg6NVIU=; b=gz7EsVpjDiKFmkauFIOX/NmAPFDVJv6la2pDIEEAtTIzajEQc5SGjVYThE/UFBadl7 J9F3lBNbFNDf5uEfywPAHQgaUI98Up4md+P3LIgkTGJb1Dz+w6lZxmU703Ebt0f9BZTN lh0BjOVsj7HtlBfkCwMGeK1Udy5zkyxG6xggjatIWLl0PPdDcauErpZq54rJNO48W6BY XcH4YeKvRz7ld14JOAAnoAEFddzc5Ye+K0J77ARiXvinUXz4eraNQ2BX3PaG6Jv8tIrq rVoQIRUpJYAH2RYb4zkAed0uKz0pon4BmSVQXsr/AMQtaJSWiYrZJ8khk+gS9rxQ46pC 2W7w== X-Gm-Message-State: ANhLgQ0Z2CVsv7lytmHBeK8xBcENEcuaTf+1GFV7AgMW4LSNq0m1W/1I ZoJDqPilB5WVQE2C873yNCWfvyjjiIAmS4nyHxXoTiZlTGQ= X-Google-Smtp-Source: ADFU+vvrx0rPLVjmnhSfmUgrB/H+T6oWGOFBxliRMxMMra+y4bfwaIOcnLe6Tm0KHbcmv00x3iE0SfPgrlH3jaSuPtA= X-Received: by 2002:a92:3591:: with SMTP id c17mr2501966ilf.270.1583923952596; Wed, 11 Mar 2020 03:52:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 11 Mar 2020 12:52:14 +0200 Message-ID: To: Benjamin Eberlei Cc: PHP Internals Content-Type: multipart/alternative; boundary="0000000000008bbc6e05a09208f9" Subject: Re: [PHP-DEV] [RFC] Attributes v2 From: drealecs@gmail.com (=?UTF-8?Q?Alexandru_P=C4=83tr=C4=83nescu?=) --0000000000008bbc6e05a09208f9 Content-Type: text/plain; charset="UTF-8" Hi Benjamin, Two small issues/questions: 1. It is not allowed to use the same attribute name more than once on the same declaration and a compile error is thrown when this detected. Is there any reason for this? IMO, the attribute can represents something that can have multiple options. Like an `Around` attribute for aspect oriented programming for example. 2. for reflection classes extended with the getAttributes() methods, I think we need to add ReflectionMethod or change ReflectionFunction with ReflectionFunctionAbstract. Alex On Mon, Mar 9, 2020 at 4:43 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 back > 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, but > listed alternatives there. On these issues I am looking for your feedback. > > greetings > Benjamin > --0000000000008bbc6e05a09208f9--