Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101771 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63723 invoked from network); 5 Feb 2018 13:18:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2018 13:18:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.49 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.49 mail-wm0-f49.google.com Received: from [74.125.82.49] ([74.125.82.49:50645] helo=mail-wm0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 76/4C-49805-1B9587A5 for ; Mon, 05 Feb 2018 08:18:42 -0500 Received: by mail-wm0-f49.google.com with SMTP id f71so26067578wmf.0 for ; Mon, 05 Feb 2018 05:18:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=xX20WPfj3GOwAqV+V/D2/03qxbsmUJFDhQQp6UScTw8=; b=uhv+1yVAtwkfziWmmYGpQBdTHe3zUiubDnfbykhNBcpxjp5bnM/tvFXvlaSaiu0kk+ K547jH9yIDss4aqZvdIZGAyb6dSmAw4Ui/WQz/dnHCwhMjVA/GUsBPB4Zr65uFRvBjcK uBDT8LoiWhWLrSw26JMnpsKWrrhk8Uq0QEIeHucX8P3kFJm/Pdl1lli5RV9EHuvuAB6q rKT+U4IkrVnNF4EIx5V2PZNWU+xUNjB4Xa9CW/nHfZnEHaTV5rhyhW9vnhaFC9pUOCP4 2lL54ONF8xw/wMMij+zS9bkT0/ER4bRk9bzKkxiTJ/zK5qfalYpyhDgbiVJPtJvU0mn/ mXCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=xX20WPfj3GOwAqV+V/D2/03qxbsmUJFDhQQp6UScTw8=; b=rXl7GA5T0lN56kuBSJmdsIBBJn/NzTCIL3dkvmBAgbr2/3zc82G+MSUhTf+xzNsiwW nFBp6W+GYfT9YvkzzfDwrYPeTu6zhUMFbjly8znCtbMVbrBE2FYVyFUds3UeVg5fgC0a kYXCWuY22hU4i55hUQHgzuFwLmgdick3y8Jy/AKFqqOVXGB9cYSZL2Fcm4zPOLtdC7n+ N0v6LpDSWDERoa/9Kny5HmohbacCnD6B3jLP3oIl2MFKXzmCsm+i4HFzZRLamD2R20BJ ohdWuyz5VCcl5gp7UcafqQXswV5esLayAXYRNZG3TCCDbLtMyybT6LAFspJ6ZSCBVHnA h9CQ== X-Gm-Message-State: AKwxytf6TOD4QU/7RPSq+eghvxrHiZBzp2EPxgjg43qErlaLuwmR/o+u VBp7h/ARCAMdYEpz9l2tuWEv7AqeQEWf8AbxlqQ= X-Google-Smtp-Source: AH8x224u79REgtNVroMJ3I+aV+tXruMiPp6I5uU9keqUdGR6jd6FpL24HJx6TSVq7P6n4bdn2ET+vnrRRJiUkvN+NmQ= X-Received: by 10.80.181.197 with SMTP id a63mr20588264ede.138.1517836718962; Mon, 05 Feb 2018 05:18:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.222.195 with HTTP; Mon, 5 Feb 2018 05:18:38 -0800 (PST) In-Reply-To: References: <59e48427-ce88-58fb-f802-48b7412e480d@hoa-project.net> Date: Mon, 5 Feb 2018 13:18:38 +0000 Message-ID: To: PHP Internals List Content-Type: multipart/alternative; boundary="94eb2c194ade760013056476e6b5" Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Deprecation of fallback to root scope From: rowan.collins@gmail.com (Rowan Collins) --94eb2c194ade760013056476e6b5 Content-Type: text/plain; charset="UTF-8" On 5 February 2018 at 12:54, Marco Pivetta wrote: > On Mon, Feb 5, 2018 at 1:52 PM, Rowan Collins > wrote: > >> None of these options is particularly appealing, and this will all be for >> a >> hypothetical future improvement to the language. >> > > Would proposing a function autoloading RFC together with this improve the > situation? > I think it would, firstly because it gives a visible benefit to the change we would be asking users to make, and secondly because it allows a shim like the example in the RFC to be used immediately as a transition. As I mentioned in an aside previously, it would also make an opt-in statement more reasonable, because saying "namespace Foo\Bar with autoload" could both turn off the fallback lookup and turn on autoloading functions in the current namespace. Fully-qualified function names could be autoloaded in both modes, and presumably functions explicitly imported with "use" could be too. Regards, -- Rowan Collins [IMSoP] --94eb2c194ade760013056476e6b5--