Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114447 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 52584 invoked from network); 12 May 2021 14:59:28 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 12 May 2021 14:59:28 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D52FD1804F4 for ; Wed, 12 May 2021 08:07:31 -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,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f175.google.com (mail-yb1-f175.google.com [209.85.219.175]) (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 ; Wed, 12 May 2021 08:07:31 -0700 (PDT) Received: by mail-yb1-f175.google.com with SMTP id g38so31116275ybi.12 for ; Wed, 12 May 2021 08:07:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datadoghq.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=qN9V68EtQewUUZDhXLRf3kFEzzN6cdON5R5cY3F4kao=; b=QpZwVZtFKbXftbHgx8WtRYVNpLaRIH+Fp4ksLg9kX6cj5EPn3771Ogtkkx40aFvdVb wV3zUg3C8MnES6DMRT5Zb4RMrb8j7ijSXp0/D6FrPWrWRVbRXWd3P5K6DcUsAwba/foh 9sCiykbf3G5UHefBtAKNpwYe+xlXle14Xs99Q= 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:content-transfer-encoding; bh=qN9V68EtQewUUZDhXLRf3kFEzzN6cdON5R5cY3F4kao=; b=Vxl0ICeW+gZxLVrPmpJYUI/mDhiVOGy/MTk3s3/tYQfuJ/K0wdeM2yBc+jrLHJ3o6Q vqSuqYOt32aWyHhjbY4Iap0UUZkDrVKh4fM/EaMe2H2GvSagbFKCisZAeBbGwN/9xN39 lmGePFx7BKeuK/yrGE6IbOrE0IHZnyM0u7ivql0CWKUS0Eig4T8kg3VCAKK9CaU4pa21 W9E10k4/CpdaBsxzjxJt43nR11j6cxjrhNTHvVMOKb3o7I/lDWoCg8qC9K7829xH7Cv1 I27NKB6erZNnzjIuxgmSth9XhKO4qY/UrSVTXpszdhbMug7FW2oaoklrcfb0FAC2c6Rt wbXA== X-Gm-Message-State: AOAM530EUHBYvZSk77E8DgAJCUbMsNdVCgrGDDAmmhaGadv1QlCmm+8D QPBv5ar+bifeYXp43aRUY7ll3cilnzOH45pBeLwv+g== X-Google-Smtp-Source: ABdhPJwQi3IUe9VdR+PxBzarrfnhrZpITdpTUu5Fod780uramvenjqGULVrDo0Pd58CbBRja3J9ldPA0g3ev2BvG86E= X-Received: by 2002:a5b:8c2:: with SMTP id w2mr33390419ybq.367.1620832051041; Wed, 12 May 2021 08:07:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Reply-To: Levi Morrison Date: Wed, 12 May 2021 09:07:20 -0600 Message-ID: To: Nikita Popov Cc: Go Kudo , PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Discussion: Object-scoped RNG From: internals@lists.php.net ("Levi Morrison via internals") On Wed, May 12, 2021 at 8:58 AM Nikita Popov wrote: > > On Wed, May 12, 2021 at 4:51 PM Levi Morrison via internals wrote: >> >> > Also, I am happy to see that Nikita's rules for namespace assignment t= o extensions have been approved. I'm going to use the `RNG` namespace. >> >> Just to be clear, you can only use `RNG` as a namespace if the >> extension is named `ext/rng`. You cannot add namespaced things to >> `standard` nor `SPL` nor `Core`. > > > This is not correct. The namespace policy RFC specifically and explicitly= allows namespacing of components in standard/core, see https://wiki.php.ne= t/rfc/namespaces_in_bundled_extensions#core_standard_spl. Adding something = under the RNG\ namespace inside ext/standard is fine (modulo due diligence = on the specific choice of namespace name). > > Regards, > Nikita It says: > Because these extensions combine a lot of unrelated or only tangentially = related functionality, symbols should not be namespaced under the Core, Sta= ndard or Spl namespaces. Instead, these extensions should be considered as = a collection of different components, and should be namespaced according to= these. The second sentence is not well defined. I am confident this was discussed as part of the RFC discussion. The understanding I, and at least a few others, took away is that it means these extensions can't namespace anything until another RFC defines that second sentence. In other words, the RFC says you cannot name things in those extensions with the namespace "Core", "Standard", nor "SPL", but it doesn't define what you _can_ use. This is really important. If the RFC author did not have this same consensus then this is a MAJOR problem that needs immediate discussion. Levi Morrison