Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107960 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 71240 invoked from network); 2 Jan 2020 18:48:51 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 Jan 2020 18:48:51 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DADE2180548 for ; Thu, 2 Jan 2020 08:52:46 -0800 (PST) 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_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-yw1-f43.google.com (mail-yw1-f43.google.com [209.85.161.43]) (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, 2 Jan 2020 08:52:46 -0800 (PST) Received: by mail-yw1-f43.google.com with SMTP id n184so17433248ywc.3 for ; Thu, 02 Jan 2020 08:52:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=uwGkntBNtf5qPei1P5W8lZi7YfaidJhPUFahuPaobSs=; b=FR8YzPCiJa9LoBgX1gjdECWXvfXVY1c02mS4cGzRSdzYVXBJWRa+GfWJZeLyNKHvh4 1v/Oaty1PW+XRVFQPkHCnOIvcs3V/igTBubB+mSLy2xYN2CJP5hp3JRFzhakmVheFmck ku/SPcjtpl9y6vzQeDyH7KH8T+NdU8V+FM2TI9IKs8uIlRBHyq01PfCdFvpKIgBzLfAP HRUA77x8SgawRDTUhb8SH8i5rBGOnskT4ZmxrXwBz+U8EiDOI01AF//YcDJiPAkAaNqM kxIvY7Gkz/2EbrA5YZirFEEyzoS9Zwqthw+QJcyNCuMV1vIb2pTl//AhNaGvDLXqRfoO 1dJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=uwGkntBNtf5qPei1P5W8lZi7YfaidJhPUFahuPaobSs=; b=GErflp5bM8rQKTeHkgu2Y7KCSTlYLybgqIyzzmu+hT1b/Lh86XM5myi62M4ne2iYs/ /MXAJRq3uCzRcAZQhuufWw+mFUHi2u2boYJh9ZaxIy8BHr0kT9YKaQDDgYioxTLZInkt flYYVnjzP1EYPXERyuAOSVRsy69Cj91q2nYqFU8PXIiKd4iLfJn/dDeJjO1ZFXSwUSZ5 8JPHUyQVDXI5yUJY6xRm+0IggjCzn55AFGgwepdD7yHFouw/vgCHv13ShdrvmYQA77Ih 6Z4Go0+dx9F5rWiVMHrFPDze3baCwEvH6uXVyM6ZlqY7wZq8Bjz+qxY5SJdjn2NdQr8c s1Cw== X-Gm-Message-State: APjAAAUd6800T6cMbYli9B1akHG4l7DAToDNre0kJSKrM8cW4fHZIWar m6wu+OjAnJKTBTNwCeACq5QNx5a8XytoAA== X-Google-Smtp-Source: APXvYqxoUIsuy4m6cKkvXMC87Jxctg6A5kvdK35Vg7meFPxGa8m9DS/OeJ/z3Oodc2QvUFj7ud3jhw== X-Received: by 2002:a81:a0cb:: with SMTP id x194mr64956652ywg.440.1577983965479; Thu, 02 Jan 2020 08:52:45 -0800 (PST) Received: from ?IPv6:2601:c0:c680:5cc0:d041:f4cb:aa77:d91e? ([2601:c0:c680:5cc0:d041:f4cb:aa77:d91e]) by smtp.gmail.com with ESMTPSA id r31sm18703664ywa.82.2020.01.02.08.52.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jan 2020 08:52:43 -0800 (PST) Message-ID: <42078B8B-D8A7-4C6A-8A6F-17C6F69498E0@newclarity.net> Content-Type: multipart/alternative; boundary="Apple-Mail=_435E4480-A6E0-4187-A521-F9F92B0BF9AD" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Date: Thu, 2 Jan 2020 11:52:43 -0500 In-Reply-To: <5e0d723f.1c69fb81.e2ae8.24e2SMTPIN_ADDED_MISSING@mx.google.com> Cc: Mark Randall To: PHP internals References: <5e0d723f.1c69fb81.e2ae8.24e2SMTPIN_ADDED_MISSING@mx.google.com> X-Mailer: Apple Mail (2.3445.104.11) Subject: Re: [PHP-DEV] Re: [RFC] "use global functions/consts" statement From: mike@newclarity.net (Mike Schinkel) --Apple-Mail=_435E4480-A6E0-4187-A521-F9F92B0BF9AD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Jan 1, 2020, at 11:31 PM, Mark Randall wrote: > In future, I think the optimal solution is opt-in deprecating fallback = to the root namespace using a declare. We might eventually benefit from = versioned "libraries" of functions that can be imported in one command = which would solve many-a-future-problem by itself. +1 to that. =20 Especially if there is a mechanism to define functions from other = people's code to be included in those "libraries", such as the functions = in the WordPress API. > Id like to see nikic/scalar_objects added to the core in 8.0, that = would offer non-procedural (and therefore non-namespaced) access to many = of the most common global functions (strings, arrays etc). In turn, that = would allow developers to limit the number of use \... statements. And +1000 to that! -Mike --Apple-Mail=_435E4480-A6E0-4187-A521-F9F92B0BF9AD--