Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110295 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 86562 invoked from network); 28 May 2020 19:06:26 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 May 2020 19:06:26 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0B04F1804D3 for ; Thu, 28 May 2020 10:47:10 -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.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE 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-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 ; Thu, 28 May 2020 10:47:08 -0700 (PDT) Received: by mail-wr1-f52.google.com with SMTP id j16so16607982wrb.7 for ; Thu, 28 May 2020 10:47:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beberlei-de.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=85TM7kIks/p2k/AJBtQZMKrUlwTm7S20dyIWEwxUI+8=; b=UKSoS7S4K1hXKyaPqXYYOmy8pjLcL9wQb0fOg+b8xOi4UtivNdQ5nZJfSflIddPhHd ZryWJ8zUaoCnM0WOP3l0ho7e+gdrgyqRFwbpD4sOIFKWcT+Be5RMYwaq9dcp/YxDnBHo ETilMjp+gStjBSVGWio+QnUUdSDIM5TMSqnKJovwx0Thfiaj0NiX+1oRx7dcKE8FFmfm WKoLwGqLRhoBpI/zr7wom+YGRBvBikPj30y4VLSLsP9HevPUuZ4sp4U9BkPL5ynQp6Tt yXVWwW5RHutfqofjr+EVfwptpPRYhasYSbu/dtGsLP23jz9KpCS7riph7hnv/bhlgUvv dOrg== 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=85TM7kIks/p2k/AJBtQZMKrUlwTm7S20dyIWEwxUI+8=; b=KTgZ9Vo0yT0nSzrk/uKb9IKOP0ipafAO2TO1QLmEwy15Q8X/JzY/ENamdU+Ia5JKEo vBCCpCX63/3j8DIf6gtN/eE1SDmAxcRLW1pxzvuimBv/OWQLPXrAe7rAJo1X2GngpqvI 9rp22rNi6uQOjHrboWqowRgzTtlOF02ZDkZAyHgggd14SqryZfqZHwzBrj6uyH7rbBcL 66tBMN5QnsF0ud4f8ntgdDfVkDnpMXNzlfAG5wywmcWIqINwgjERzXFIXJnSNGjB0juw GcFUXK131DtGf3gUUUvhFPn4BC/YD03sdnRfuVwx1EAL3b5OLYChKZHYnZqipoSDJtqM fOeA== X-Gm-Message-State: AOAM5307OtIzs7Y9LhWTGlxC9Jd6m1lMVAsu5FFXDVUneJu+gXR57/SM Pe4aG/JGckjOEtYnl3jjWNd/Vv0PTlSAN7YrmBCn7A== X-Google-Smtp-Source: ABdhPJzhzT4o/P2izqJwSQe3oozGTyHyTQDUP1dKkwLUXlMcK8H7QBUKeX6vUbBchjV+F1EdqsRxCGxFFEdmtO2QEtI= X-Received: by 2002:adf:e588:: with SMTP id l8mr4855442wrm.255.1590688026168; Thu, 28 May 2020 10:47:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 28 May 2020 19:46:55 +0200 Message-ID: To: Benas IML Cc: PHP Internals Content-Type: multipart/alternative; boundary="000000000000bfa91d05a6b8eaf6" Subject: Re: [PHP-DEV] [RFC] Amendments to Attributes From: kontakt@beberlei.de (Benjamin Eberlei) --000000000000bfa91d05a6b8eaf6 Content-Type: text/plain; charset="UTF-8" On Thu, May 28, 2020 at 12:05 AM Benas IML wrote: > It seems that the RFC was updated to use the `Attributes` namespace. I > think this is a bad idea since we're reserving a generic namespace that we > haven't even "soft" reserved. Also, the loss of fallback to global > namespace is a turning point for me. > > Generally, I think we should instead do something like Rowan said: use > namespaced classes only for implementations (e.g. `\Attribute` but > `\PHP\Deprecated`). > I agree on sentiment, but the PHP namespace vote is failing right now, so that makes this plan just a rehashing of the existing, failing vote. The likelihood of a class Attributes\Attribute or Attributes\Deprecated existing in any code out there is much much lower, than the classes Attribute and Deprecated existing in the global namespace. The "PHP\" namespace would imply some sort of claim of the project, which the failing namespace vote shows does not exist. The way attributes map to classes, suffixes/prefixes make them strange to look at, so for future non-breaks with userland code it will be safer to put them off to a new namespace and this potentially increases the user perception. If this vote fails, this implicitly means that all future internal attributes will probably go into the global namespace. > > Best regards, > Benas > > On Wed, May 20, 2020, 8:08 PM Benjamin Eberlei > wrote: > >> Hi everyone, >> >> the Attributes RFC was rather large already, so a few things were left >> open >> or discussions during the vote have made us rethink a things. >> >> https://wiki.php.net/rfc/attribute_amendments >> >> These points are handled by the Amendments RFC to Attributes: >> >> 1. Proposing to add a grouped syntax < >> 2. Rename PhpAttribute to Attribute in global namespace (independent of >> the >> namespace RFC) >> 3. Add validation of attribute class targets, which internal attributes >> can >> do, but userland can't >> 4. Specification if an attribute is repeatable or not on the same >> declaration and fail otherwise. >> >> Each of them is a rather small issue, so I hope its ok to aggregate all >> four of them in a single RFC. Please let me know if it's not. >> >> greetings >> Benjamin >> > --000000000000bfa91d05a6b8eaf6--