Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107879 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 4689 invoked from network); 28 Nov 2019 11:40:31 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 28 Nov 2019 11:40:31 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id 370622D08EE for ; Thu, 28 Nov 2019 01:35:39 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Thu, 28 Nov 2019 01:35:38 -0800 (PST) Received: by mail-il1-x12f.google.com with SMTP id u17so23674646ilq.5 for ; Thu, 28 Nov 2019 01:35:38 -0800 (PST) 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; bh=oaJ6Ynq1ySWS65Huv7IExeHCiMX++I/A3mP+k5cdghE=; b=PVnjkChwn3SPIyfcaa+HNVFuXu3HJSUpqg6kxJis6+N+ZfbTE3YxqoIt5M6uRKnifw t+ScCZmv4GrGesKuwppMx9lZgFBAAyY0q6Xvr+pQRBGr1dLhqhbELhwmi0VtU/wgH6wy 53aTOmduRCr8WGvVmiTIvTfrgYD6NBIooY6Pnlm9kEdh3g0oGIPukFj0Z5l/AufcWK7n MRXVWgfmJegdMls6yXoIMrFTuDn/B90vDV5nG6WO3ECyOZ47LyiFYgk2XRe1kK2ZSBO0 pjRDb+fL2ED4IsLjBK3hJ3NJv/rNNg7E7SzHIv2zSwHi/BlHKTz5/4Ii9+RNQyumHt0B PjNA== 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; bh=oaJ6Ynq1ySWS65Huv7IExeHCiMX++I/A3mP+k5cdghE=; b=bWFaxIUEhkcfpqv5ggMA2HRGH/td73CBc3P+6LnkxlZ43r4RJgBZlamsyfATZWre2v B7z4FBe2tnGB0jOkRvfGIiZbxg40hqQCdfJuBkIuHClRQ2jBLnvGWZTVOsOuxHLiJZP4 PIRizXBMM/eNi6mfNIJOa19I/erGAJaSoJ5qtBuz/T4GtaERuWtndGWMykJKZ9XfQRV9 PSEs9rBc9ADraGEidXS/q0HDo8cYTAwdtC3OuPxvxqoEBDQACN0Fmk6BwdC6x5CysF4L XsjgPD1WQsUnDeod0XzpZUCuGvmY6gasSt08HnRwgRVxAgN7U6bmgj+LDXbLZwUbL1ij 5jdA== X-Gm-Message-State: APjAAAWRrzvExbbdKsYWPTDdxYzvzSyAsi3sf7RtchdeBmOZTm3YNCHn thSn0aHTKa4RYBIoMB5LBNMPF0tnIC/hv9PmUTvZ2fQv X-Google-Smtp-Source: APXvYqyxl6fW6MIEx8+8/k2BHL3tDShz4XEcOXbThFvg2Mjn8SJgtsfXhzH1qDGUjYs+99m0GE9aOaLo7zr+w/xgpq0= X-Received: by 2002:a92:2450:: with SMTP id k77mr47399873ilk.120.1574933737928; Thu, 28 Nov 2019 01:35:37 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 28 Nov 2019 09:35:27 +0000 Message-ID: To: "internals@lists.php.net" Content-Type: multipart/alternative; boundary="000000000000fe7efd059864d567" X-Envelope-From: Subject: Re: [PHP-DEV] Opt-in "use function *;" for skipping check for function/const in alternate namespace From: rowan.collins@gmail.com (Rowan Tommins) --000000000000fe7efd059864d567 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 28 Nov 2019 at 00:02, tyson andre wrote= : > - Due to the absence of function autoloading (not supported in php to > performance overhead), functions outside the global scope are rare in > practice. > If this is a valid justification, perhaps we should do the opposite of the "deprecate fallback to global scope" RFC you mentioned, and make the "use function *" behaviour the default in some future version. That would provide us longer term benefits, such as being able to introduce function autoloading. An opt-in mechanism is certainly easier to migrate to, but it would be a shame if every PHP file in 10 years time included a line like this: use function *; // don't know what this does, but apparently it's good for performance =C2=AF\_(=E3=83=84)_/=C2=AF Regards, --=20 Rowan Tommins [IMSoP] --000000000000fe7efd059864d567--