Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109965 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 31178 invoked from network); 2 May 2020 17:22:38 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 May 2020 17:22:38 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 812B11804CE for ; Sat, 2 May 2020 08:56:47 -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 81.169.144.0/22 X-Spam-Virus: No X-Envelope-From: Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [81.169.146.221]) (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 ; Sat, 2 May 2020 08:56:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1588435004; 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=2vUszz4/epXVtC5EAp8xGZ7qXwWfY+uth4fTvI0w7Io=; b=BaM2gV8a2W/rRfxMTKfZjbFzvUCoLUuBI9CqD+S+IRdKHISZkTsodNGC9OxVzmbjlt iSYYMIs1d+HkXBCQuNQi4lUo7Yw3BjpvnYu49Jq0nckI1GQYWpvcHQZhe532bxdq+R7L d+vtwbmeBTCvwzEG6vfZ1ddgKxgkIbwZTFgQMuHYvbpfVIeJolSd3zjO0nlKyiZkDJLv U3i3OS7biwXyvlNUCbgBVWB9VG2b8VzziV/NG6ZmKsiBCoH2rj1gOICF07/8WmsiKivv n621co/OtjBBMdARHvaXVEBvtYeu7ukfhKSVNccvK7Zjv73SsKwnnjJp8RmNz9N8KLc6 QHIw== X-RZG-AUTH: ":IWkkfkWkbvHsXQGmRYmUo9mlsGbEv0XHBzMIJSS+jKTzde5mDb8Aa6l6wv1N" X-RZG-CLASS-ID: mo00 Received: from mail-ua1-f42.google.com by smtp.strato.de (RZmta 46.6.2 AUTH) with ESMTPSA id C0794aw42Fuintd (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Sat, 2 May 2020 17:56:44 +0200 (CEST) Received: by mail-ua1-f42.google.com with SMTP id c24so4810431uap.13 for ; Sat, 02 May 2020 08:56:44 -0700 (PDT) X-Gm-Message-State: AGi0PubNspRUELSDso2A83iKSvF/z1oJfER58jP2WLB4tHtjdNrmwLJy Qc/TRlBm8Hw12Q7BR78i1BqryPo6NBEQ/M7hSBI= X-Google-Smtp-Source: APiQypJWjL7nt0bPfYjNm6h7K7IJx0ksxIOyZVsg1HwgJy2eFjbRPy9Prv4FqAdVwtK/1TnWa/tL3zGfe+Me4ygPUX4= X-Received: by 2002:ab0:6855:: with SMTP id a21mr6619395uas.30.1588435003734; Sat, 02 May 2020 08:56:43 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 2 May 2020 17:56:21 +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, a question has come up whether we even need the PhpAttribute / Attribute attribute at all. We could prevent any conflict if we just delete it. 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 >