Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109865 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 40476 invoked from network); 27 Apr 2020 23:49:50 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 Apr 2020 23:49:50 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CD3731804DD for ; Mon, 27 Apr 2020 15:22:51 -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,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, 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-qt1-f173.google.com (mail-qt1-f173.google.com [209.85.160.173]) (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 ; Mon, 27 Apr 2020 15:22:51 -0700 (PDT) Received: by mail-qt1-f173.google.com with SMTP id c23so15237564qtp.11 for ; Mon, 27 Apr 2020 15:22:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=MogROediBrmUuQaioh+llD/wwZO7XzTp/pgxs45opvc=; b=Cc28a4Rt/UhwQ/jw8pltwGabXCOE/Xfp6E48ziiHg1TX6Bjg10ScIYZu9Bbh/HXoBN qHqmYoaDPSalpB60EdScnQJ5CkggAQ3lDQJh+7jQ5iXcZO2MHEW+F9oU9UIizKvJWB/6 hbT+4i2KGdQ8kFpYXtvte3HvrfpzKiPEXgFzqMQHEFrVesotKacbm7ghXVKiWE8akYFi Uh6m8EEFQIt7Zz2wuwibE7YL+qpKYq6mj9SBk82WdovymhOl8/OVaoTwwpXh16vHiF/i hsLbMQVlBmptEd2LvyTujnBKI14oRFrSRGAg6lpHc40TYZUURiSbC/b59C3YcaDCWEae h34g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=MogROediBrmUuQaioh+llD/wwZO7XzTp/pgxs45opvc=; b=AJf4xGL4A6aFJE0cC1QMBLfGACIKrdY4gXaM9rcQ63CwTDU0b8bGt4UE3WAz8AMies 3REsMK+RA4npkB5okQxHwKeiV2xuolBQ8Ipj/UtdUbe8bxnGftxkkaq74Tg6nf1/VSOU 7aeCzEmnbfXx4XoLwvdyqcimO2Yc5JJAvad/tzLC0j8dFphezyP1pWOoL1/d3ZlMkZn1 2ebbRz0khmzMgdrSAMPSHXcbIYA9dcxcPHghGcNjIDHFBlRxfQcOgqzbFjyesmMehBTY fJGcHXgECKM2Yjpxm2vOyJtI30tG2TJyRgOsBAQJq7XlswCbh17jr941j+7DrSsNHyo6 1hZA== X-Gm-Message-State: AGi0PubT27ARIk5AfWsnMCQvY8Y2y5aOpeNpI3teQJlP/nlK2OgOu568 nGBxgq607qki2BesUYxKdqujlg== X-Google-Smtp-Source: APiQypIUSNqm4cOQzec4DJ5MIwugfGIZ9v110ri0j4rIFMiwlppg+IiGTj+drhBhioxGw6UaKEuGMQ== X-Received: by 2002:ac8:568b:: with SMTP id h11mr25886263qta.197.1588026170667; Mon, 27 Apr 2020 15:22:50 -0700 (PDT) Received: from ?IPv6:2601:c0:c680:5cc0:25be:5fd7:5561:ee88? ([2601:c0:c680:5cc0:25be:5fd7:5561:ee88]) by smtp.gmail.com with ESMTPSA id y185sm10693484qkd.29.2020.04.27.15.22.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Apr 2020 15:22:50 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) In-Reply-To: <29bd50e0-51d5-e8a1-10c4-bf89d42124c3@gmail.com> Date: Mon, 27 Apr 2020 18:22:49 -0400 Cc: PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <5ea5e72d.1c69fb81.ecd6b.8d05SMTPIN_ADDED_MISSING@mx.google.com> <29bd50e0-51d5-e8a1-10c4-bf89d42124c3@gmail.com> To: Rowan Tommins X-Mailer: Apple Mail (2.3445.104.11) Subject: Re: [PHP-DEV] [RFC] PHP Namespace Policy From: mike@newclarity.net (Mike Schinkel) > On Apr 27, 2020, at 6:05 PM, Rowan Tommins = wrote: >=20 > So you'd be happy with PHP\str_contains and \str_replace next to each = other indefinitely? Absolutely. The benefits of having a PHP namespace would outweigh the = lack of elegance above. OTOH I'm not sure why we could not have *both* \str_replace and = PHP\str_replace, with a plan to deprecate the former many versions from = now. > Or, more in line with your proposal, a hypothetical = PHP\Iterators\FractallyAwesomeIterator next to \InifiniteIterator, = \LimitIterator, etc? Or did you have some stronger definition of "newer = things" in mind? Newer things =3D=3D=3D things that come chronologically after an RFC is = approved. If we have to ensure elegance across the entire language it becomes very = hard to ever improve it as new things are usually inconsistent with = less-elegant prior approaches. > I don't really see what such an arbitrary split would gain us, other = than a lot of confusion. The "arbitrary split" is not what where we would see the gain, that is = just an unfortunately inconvenience. The gain would come from having a PHP namespace where we don't have to = worry about naming conflicts in user-land moving forward. The former is an acceptable tradeoff to gain the latter. IMO anyway. = But YMMV. > Importantly, it wouldn't be following the lead of the other languages = and frameworks you mentioned, which was the specific point I was = responding to. Did I mention other languages and frameworks? I just wrote the simple = reply above saying "newer things go in, older ones stay out." -Mike