Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109888 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 92776 invoked from network); 28 Apr 2020 17:55:19 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 Apr 2020 17:55:19 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8BDC51804F2 for ; Tue, 28 Apr 2020 09:28:29 -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,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-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (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 09:28:28 -0700 (PDT) Received: by mail-lj1-f176.google.com with SMTP id u15so22152554ljd.3 for ; Tue, 28 Apr 2020 09:28:28 -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=bfuK+XGmeqf3Kqq9nByVC6Oa0YI9dZ3z6PETpjmZV4I=; b=Ki11coBJqtYvOJ0QyqimKBq4QGvQnAAVsvGFvK4Znc0N7wqMJNzUwZEimNy5TtW31K CsrWF6jzegOx7zBXDGri+f6CBGNDO6EFAdoUgzWmKGsooHGTo0LFDg6eYhazyGNRBKYB IF/00dV8QXIyrWDFrR6tqfmzkZrLQGcsVBZV3X24g3ccf8d+pQkII3SsUGPcZdjJLUNq VA7WrLccBWRdprjh3FWfpwxHjfNvmrUhCgs/jijISHiTc/RGyzNQTCkfj86dQIFzpB2I bVflvSwzgWBjLQeMdn+dsuNAXW3gTU7Hvkcxip69fzFI7cHmip2mleO3Hj9QI4JjeheQ IKhw== 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=bfuK+XGmeqf3Kqq9nByVC6Oa0YI9dZ3z6PETpjmZV4I=; b=Q/j9srvvFrgX3yCjGrQwmJMbCXhyD1zfe/s0ecQXHN2V0SHMDIe5UE76V0gziNlTZZ zVfC0CPTvtGPXThE0yz7KC94Xl5+cjDrx2lqddfgCnqsXGFQBlGbSvYNQLTQhU4t1XRi mHd3PCZTd/rjK/WXBbkHCIQf8VjZZ8RFo+BdnXXeTX+gSy2r+vDBJUwXi9a5PD0rjMqi wTG80ELtnM6NL4J8NWHc2/w21175c3CB+QOV8Gyh92/Mm+8IazYMZ65urz0k6bY4CR8Y sna3ErWCacX0LNuiue5bl+f/TquaDjMhp4W3PmDzNBr5NM5ZduZHsEcEW0FXZ9ezx6oK fhAQ== X-Gm-Message-State: AGi0PuZ0OcPURYmyFFh37HNEEHeyTDonVP3itS/lhhtwNcNYIuivq+MM fYa/UwiaBiVqMHSWiB1sD+OfERS4eTcLLij95B0= X-Google-Smtp-Source: APiQypJKao//mYAUruOJTmkUQ+FTkj+Ekds0Fwsp2+5ixSuA1SnNkEuDZ5HlbohDd+cOyi3tkJSOrnrpL+oUyK9XU5k= X-Received: by 2002:a2e:8884:: with SMTP id k4mr18697924lji.267.1588091306632; Tue, 28 Apr 2020 09:28:26 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 28 Apr 2020 18:28:10 +0200 Message-ID: To: Aaron Piotrowski Cc: Benas IML , PHP internals Content-Type: multipart/alternative; boundary="00000000000033e8fd05a45c5255" Subject: Re: [PHP-DEV] Renaming PhpAttribute to Attribute From: nikita.ppv@gmail.com (Nikita Popov) --00000000000033e8fd05a45c5255 Content-Type: text/plain; charset="UTF-8" On Tue, Apr 28, 2020 at 6:21 PM Aaron Piotrowski wrote: > > > On Apr 28, 2020, at 10:37 AM, Benas IML > wrote: > > > > 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 > > > > > I too strongly agree that attributes should use `Attribute` over > `PhpAttribute` or even `PHP\Attribute`. > > Namespaces for bundled classes probably should be used in the future, but > for logically grouped classes (such as DOM), extensions, etc. > > Attributes are a basic language feature, and therefore should live in the > global namespace the same way as Throwable, Iterator, Countable, etc. > > I did not want naming to be a blocker on the attributes RFC, but it > certainly bothered me that it was not `<>`. > +1 Nikita --00000000000033e8fd05a45c5255--