Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109880 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 77505 invoked from network); 28 Apr 2020 17:04:40 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 Apr 2020 17:04:40 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4E7231804FD for ; Tue, 28 Apr 2020 08:37:53 -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.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 08:37:52 -0700 (PDT) Received: by mail-lf1-f50.google.com with SMTP id 198so17306796lfo.7 for ; Tue, 28 Apr 2020 08:37:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=OkK0mZ0tYueHGgP9ZxanlYJl3CdX9EdpJlAv1kaVghM=; b=ZcQocJ1Z9cD3j/pcNFLcDrcrukIlc1qWObnIlZxZzQwo+iDNXmLjatXlEwxBGvJkpe CccS4nBHGcnPOXFIn96eI7o1pwzZchBqIBQcdQ1lawy/CUzJqtWikVKH2j1ETzdto5dP 3ZbE4grccwqD6s73E6CkvzuxrsVxU6qz955jdX/Qcgc6iV/drsHdyoqH32FPkC8dNRsp 19nz//zLaNwbD+d4tDREJRNRGDDrA8MIovbmrXMrPiX4VTLyoucvqarbA+Zoz0lrOhaP i0SRB0bdT4yGFW/hxwfZAhJEvhjQ4sB8Jet9yS3MQL+G6bGNtq6Fc5iBAenTSH+lgyeZ Xwvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=OkK0mZ0tYueHGgP9ZxanlYJl3CdX9EdpJlAv1kaVghM=; b=Bna48CSyaPEPPnWIGS0I/R5AI12xPLpBKv/873Ci2m7pCjuXbOQRa6irb9scAAqO++ UOsUNfCjfWPMxEwq7lWuy599CDEeV+d0AGk5gNW26zeZIOpzH5X4399uq9hiG0kSRKGF ewnbX/ZH9qP+5sMxx+5rzsPnTuGzZ6TnNB3gn/lT5UgOYBykwjA1K44KkMxILwFiQjZT QE+EWHM+2jwtjK6CiBZHQmPnJf5bA+PeTFssyqQI6Thh8HLtur96eCqrc9gcsaOkmBuZ wUPmQDzeFdVE7/2osk2p3xA6dFxDtLjCp4HCllIOB195qtFqFaG9226sV5LALZDykzDQ NsAA== X-Gm-Message-State: AGi0Pub5GjRfDm3vooCPII8IzgZgX9RUJd2q8VwBv1aiX62bqYLlOaU8 U3DAZse/HCHZnBuJPwbm9GIRncPC3BSotMHMCUlpvViS X-Google-Smtp-Source: APiQypJuI3GPhzSn9uVmJKDmlmFdkXws6xWcaZd8JAagPKKCrNWTlbtNfl7QYz9j87eMs/Ceny3MlBXCRR84KFy+yOM= X-Received: by 2002:a05:6512:14a:: with SMTP id m10mr19314145lfo.152.1588088270608; Tue, 28 Apr 2020 08:37:50 -0700 (PDT) MIME-Version: 1.0 Date: Tue, 28 Apr 2020 18:37:39 +0300 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Subject: Renaming PhpAttribute to Attribute From: benas.molis.iml@gmail.com (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.