Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109902 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 4755 invoked from network); 29 Apr 2020 07:18:42 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Apr 2020 07:18:42 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 06AEE1801FD for ; Tue, 28 Apr 2020 22:52:01 -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.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS6724 85.215.255.0/24 X-Spam-Virus: No X-Envelope-From: Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [85.215.255.20]) (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, 28 Apr 2020 22:51:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1588139518; s=strato-dkim-0002; d=kelunik.com; h=Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=XfeLXYKuRvhGfLyzZLWiP9/mmbMaF4ElQ3PA9zvEiOU=; b=k2NEmctZ7xCiqqne3hskoVXuBiwBIuJPEexCP5cxnk7uCpLU1xyoDQXXlVtTxGNXy/ AtHexav8viawr/6U9deS0LiP0y+ZPURTFlpbEGO7C0VLi+N95MTfHrJr/5ect91d18np Nx/iyWRtKIsCojLTO39ErwD0o6zXBTLnc8pAboPQ+rW6Oi8KxAtEWXwp348EBAT9KWyj QoS1NcUYxqyZCQFZg9O4GJYdUh+aE7qgX9KocxKR07xT3XibTiKizk6ZEHVwmb2wWsg+ +JMTrAuPre4NepExY5TtjYhszegWr9QsNZOrd/oigcxOKahcseUUmUcuYACxEdlkH4R0 xQPw== X-RZG-AUTH: ":IWkkfkWkbvHsXQGmRYmUo9mlsGbEv0XHBzMIJSS+jKTzde5mDb8AaBEcYyRB" X-RZG-CLASS-ID: mo00 Received: from mail-vs1-f43.google.com by smtp.strato.de (RZmta 46.6.2 AUTH) with ESMTPSA id C0794aw3T5pvWr9 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Wed, 29 Apr 2020 07:51:57 +0200 (CEST) Received: by mail-vs1-f43.google.com with SMTP id z1so549113vsn.11 for ; Tue, 28 Apr 2020 22:51:57 -0700 (PDT) X-Gm-Message-State: AGi0Pub9ndoMpscxpa1gb6RDwV34MOPigSD7fXZ/LLYEtrCFsJZkSc4+ Adgh3fRDeBFENbbIX7oSmHvL2Ivbq3bkF8zk8+k= X-Google-Smtp-Source: APiQypLF6gOkAa6QeqaYbfYVKDffZwu5DoZY+/nXkBgIb2WelDJT8jfwAtzlnZBmz67k5WU9X0P8wvscplflFG1dH6Y= X-Received: by 2002:a67:2d48:: with SMTP id t69mr23759501vst.52.1588139517113; Tue, 28 Apr 2020 22:51:57 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 29 Apr 2020 07:51:46 +0200 X-Gmail-Original-Message-ID: Message-ID: To: Benas IML Cc: PHP Internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Renaming PhpAttribute to Attribute From: me@kelunik.com (Niklas Keller) Hey Benas, I've also tried to get that change into the original RFC, but wasn't able to. I'm in favor of an amendment RFC to change the name to Attribute. Best, Niklas Am Di., 28. Apr. 2020 um 17:37 Uhr schrieb Benas IML : > > Hey internals, > > Since it's safe to say that the Attributes v2 RFC has passed, I wanted to > make a separate thread based on the comment by Rowan Tommins in the PHP > namespace policy thread. This is a quote from his comment: > > > One prefix doesn't make a trend. "PhpToken" is a different case - it's a > > token of PHP source code, so the prefix isn't anything to do with > > avoiding name collisions, it's a natural clarification. > > > > To be honest, I'd be perfectly happy with the attributes RFC using the > > class name "Attribute", just as we use "Iterator", "Closure", > > "Exception", etc, etc. At which point the whole thing's a non-issue. > > I do strongly agree with him and I believe we should rename `\PhpAttribute` > to simply `\Attribute` before the PHP 8 release in order to improve > consistency with other classes and interfaces e. g. Iterator, ArrayAccess, > Countable. It would also make the attribute class definition look more > aesthetically pleasing: > > ``` > <> > class Test {} > ``` > > I am ready to make an RFC for this if the replies are mostly positive, so > please, express your opinions! > > Best regards, > Benas Seliuginas > P.S: this is my second email account so hopefully it won't get marked as > spam. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >