Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110245 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 62211 invoked from network); 22 May 2020 13:17:14 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 22 May 2020 13:17:14 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7A25B1804DD for ; Fri, 22 May 2020 04:56:24 -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-il1-f176.google.com (mail-il1-f176.google.com [209.85.166.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 ; Fri, 22 May 2020 04:56:23 -0700 (PDT) Received: by mail-il1-f176.google.com with SMTP id 17so10416328ilj.3 for ; Fri, 22 May 2020 04:56:23 -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=dGAHkuJiajqNIjCy35/icNPto8y87PPwqWkrpMbI9x8=; b=TWRCpT2tYWi+O7Q4TSU4w804WqT8CXTkp4nixGbhr293hfI0xIhKDyTn72JkAgUyyH SbofR6kFFZP8USq2YM5pp7vRP2yjGzmA8e4eKQ/phYikpYaTyRXBmugB9JOSPEjODaF5 NvbQ2lkwasmXPG30zOTXd0l+o83VztvkDAE9ehtZ0q6MPyBdhVPUALAJEZKK3tayRY+Q nhGtPCoM0xM3gNPWu8tsXZYReH+yYa/kX5hChqUm9w98Kf+wsMX2MRZptgefNGIaSNRY cBJ6G+CVpylG7AyKJ6wFLo/WDQzIuYrxyRDLbtAAf9ITpZSpjlBh0iNN0f6Fx/N6xTmr UV1g== 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=dGAHkuJiajqNIjCy35/icNPto8y87PPwqWkrpMbI9x8=; b=rxR4haq2dXGCqlcd6m/XDdQo+IwhU92OySYQua5iNZOsDKMg4dydeLipfW2eqYOEe3 SPRFzLZcF4zCkOlI1rtGbT+/ZfmeQ1P2p4pwPmAqZfSIkkyqPfwsdQJdUU2xSTMfn+1j EpuslDkqAbJDDfZMprEHKBSoVGTgB95pS5a4gXJ50tL643/4awsA29DossaZOZ8JELl3 DGtfpTWcqUT+OW8WEtgImjwqfUpgd/Sq/VTq6rZVX7XwsqNjFQ/x/d2MGn/1R/ZmYeDU ohbkAr3RLroPuL4DBZOZOCJQR6f+qhBdMBkW9hTt2E49ZfH71+A7i7weyRyBqHbG6jLp KrNA== X-Gm-Message-State: AOAM530yfVly+keaY2iaJ3yNJ67NfTolsoq0IZXdwLEc0rhK+8dncOkm pMp3dSYKlk0CLGEUaA0XKl19kPom X-Google-Smtp-Source: ABdhPJyY2lQ0NoSEZyuPKFWJ3jHZodPy0Y6qx88LYEpdNllpb2sltOlg8lV4UPLtjJa7YKr/iPNS3g== X-Received: by 2002:a92:8f1a:: with SMTP id j26mr13048327ild.41.1590148581047; Fri, 22 May 2020 04:56:21 -0700 (PDT) Received: from mail-il1-f177.google.com (mail-il1-f177.google.com. [209.85.166.177]) by smtp.gmail.com with ESMTPSA id w23sm3677788iod.9.2020.05.22.04.56.20 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 May 2020 04:56:20 -0700 (PDT) Received: by mail-il1-f177.google.com with SMTP id y17so8199474ilg.0 for ; Fri, 22 May 2020 04:56:20 -0700 (PDT) X-Received: by 2002:a92:ce0c:: with SMTP id b12mr12883264ilo.7.1590148580049; Fri, 22 May 2020 04:56:20 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 22 May 2020 12:55:44 +0100 X-Gmail-Original-Message-ID: Message-ID: To: Nikita Popov Cc: Benjamin Eberlei , PHP Internals Content-Type: multipart/alternative; boundary="00000000000041217205a63b5122" Subject: Re: [PHP-DEV] [RFC] Amendments to Attributes From: phpmailinglists@gmail.com (Peter Bowyer) --00000000000041217205a63b5122 Content-Type: text/plain; charset="UTF-8" On Fri, 22 May 2020 at 12:09, Nikita Popov wrote: > While I'm happy with "Attribute" living in the global > namespace, I don't really think we'd want to introduce "Jit" as a class in > the global namespace. The name is simply to generic and does not indicate > that this is part of the attribute system. We'd be forced to go with things > like DeprecatedAttribute or JitAttribute, which seems rather non-optimal to > me, as we're just reinventing namespaces to avoid using them... > > As such, I would suggest to introduce a common namespace for all attributes > provided by PHP. This means we'd have Attributes\Attribute, > Attributes\Deprecated, Attributes\Jit, Attributes\NoJit etc. (I'm also okay > with the PHP\Attributes\Deprecated variant, but that's a separate > question). > This is the best real-world argument in favour of PHP namespace in core that I've heard. https://wiki.php.net/rfc/php-namespace-in-core If we don't want to introduce classes in the global namespace, it makes sense to have a reserved PHP namespace we use. Peter --00000000000041217205a63b5122--