Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109881 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 79314 invoked from network); 28 Apr 2020 17:09:56 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 Apr 2020 17:09:56 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1A63F1804CA for ; Tue, 28 Apr 2020 08:43:08 -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-io1-f49.google.com (mail-io1-f49.google.com [209.85.166.49]) (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:43:07 -0700 (PDT) Received: by mail-io1-f49.google.com with SMTP id k23so8118331ios.5 for ; Tue, 28 Apr 2020 08:43:07 -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=SCKmtBvFgny8RfjoV2ROC8A1OHMHFCiBSj1/pxOxMt8=; b=MeFoMzxAaFFKI0JjQ295QsRx2gpc2xrXQKR8E76j/GrcqdtUVf3BcwdPOTg5ys8eu1 v2ICVWg7g4v5fLa8gPp/7+rDrp6qXBQiu9aTi4vneAlhVkMAtzNQCfPVKClSsnfKXlum l/DYcIS6kaMhbEHYgZUrz34+AQ+TQHGHkTMggpVW5N7qoSmZ/Gv4ypzJNuC2hLA9eQms 2kd1TEoan8+m59ZFyXHDFeSfxS2P+/wSRvixFzblYUILRVaJtXrslu5l5u6doeKFOAMk o13I3jx+jL30cTJMqzRGzEyLBvcJRQ04QanP5HTCM+xN/rgNOAPGQ4JueGwnTm3jmI2x 8TfA== 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=SCKmtBvFgny8RfjoV2ROC8A1OHMHFCiBSj1/pxOxMt8=; b=B9js+gqSlcTiqVqM9vjfZ2emMvCED3+WhWu3J9N3l+psw3fJpO7b3NWq17+1nRU6ZG YLoXrL+l9JQs+tuYLBkXEpajlUNkKjs1raD5mTQXdIfKLJqueyV0G5mSSwYU9iaPdQkH 4/F62v0pvu00w3s6z6ZYrq1fEM5xf6MzZ9DqLMbgMDkiEX160ifzO2I+rg3eSdoP9wLK pQe9jQ+7o6CsBCSJTuQ01+soVGYxeztVBzzkvLy9VaF/6wSVl7LmBmBLc7r4HWxcLVja JKnnTbASIgavCpaL4nh3TOcZ+zcZZVwS0i9r/FiKQ3Ej8uySpwwxg6uzv/P2wKvgRsDg vrbg== X-Gm-Message-State: AGi0PuamBQifTiihhgpoOT+ign5rqg+DyqmdaGS5v2fnPfltbEZL9DZI UvRROxYRDJsh0zmch7FK9vZRC8AcxG5VuAEqkbs= X-Google-Smtp-Source: APiQypIX14XiG1IMkSrs3dHAXa8yPa1LfGzgAUQJNXa1HcMmk7K7mDhr2J9Hn3ULZCRUuNerogpDR0G4+IEfRVt36fk= X-Received: by 2002:a6b:7d4a:: with SMTP id d10mr10307418ioq.70.1588088587020; Tue, 28 Apr 2020 08:43:07 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 28 Apr 2020 17:42:54 +0200 Message-ID: To: Benas IML Cc: PHP Internals List Content-Type: multipart/alternative; boundary="00000000000019eecd05a45bb025" Subject: Re: [PHP-DEV] Renaming PhpAttribute to Attribute From: ocramius@gmail.com (Marco Pivetta) --00000000000019eecd05a45bb025 Content-Type: text/plain; charset="UTF-8" Heya, On Tue, Apr 28, 2020 at 5:37 PM 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. > `Attribute` is certainly too generic, and will needlessly collide with code in the wild. I suggest circling back to the `PHP\` namespace discussion, and having `PHP\Attribute` if you really have a problem with current naming. Otherwise, we will indeed see more and more `the_php_way_` in future :-) Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --00000000000019eecd05a45bb025--