Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97896 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40887 invoked from network); 20 Jan 2017 18:15:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jan 2017 18:15:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=pmjones88@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pmjones88@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.173 as permitted sender) X-PHP-List-Original-Sender: pmjones88@gmail.com X-Host-Fingerprint: 209.85.213.173 mail-yb0-f173.google.com Received: from [209.85.213.173] ([209.85.213.173:34938] helo=mail-yb0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8D/46-00729-5B352885 for ; Fri, 20 Jan 2017 13:15:17 -0500 Received: by mail-yb0-f173.google.com with SMTP id l23so64979634ybj.2 for ; Fri, 20 Jan 2017 10:15:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=rUa8DKFdGrkqK8YuRnl5H/WrbhnnL6rbw7RfY2qe/mY=; b=CsIBWdk08i+NQBGEhNEITr9H667tW/nXrC99R8TAm/ASzyp+aAZKaUGjb4pNghvHDP rT0H+hAZJuWYuTqq72ePpoD6WsDvBA/cALU7bxEFzV8BIaOkgsvunWL9n43FS+FrXGk6 cDQv2OM+RG4pu/SNRf0LgokDw2/4kqbMXIhtMxxXtUA9wKX8g5FXC1+wqFhkhi6XSK9Q STydSJT4ANZp2GgpBIssfv7K+BsiVkiPuILTscIrBxE9cQfJL4OhrrPG7Hdr+QEY6Mgh pSXScIHoFJSsr+QAhpybdBXppfoyerbhUCUFxm7nYXJ9f/Cxei4Uh/dau/oDiQaU43mL 6K5w== 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=rUa8DKFdGrkqK8YuRnl5H/WrbhnnL6rbw7RfY2qe/mY=; b=Eq93pMtS99uhKxJuDpfZ1vX5ww779ZWG5HZZuc22FYt+donz6TVJAZI2uuDOJC6GDW dvvHUDpCL4LNvEK3YAjxKMvPF5BQ/+RX7KutPC6I8ioucCBAXl0CHKS8GDv+whRDE6IF OAUqLRiGyEAZa7aaxGGSHNnS5qOXzqmza5B7h2SyJk8Hwm3tqRI7Z3qsEDx1BV9yN7aD jh6Pkuj/My9w6KkTm4Tije/75bGe09lIlnTJzcGnedJlpsPKlQm4X2hkYzOvgi9GmKjm ENbaJVMEsAmKgcz5+B8ltgIWKZPjEaPQJMVBa2G4Hm2TG/hb/uH1gOeiPs7M+57cl9fT R0jw== X-Gm-Message-State: AIkVDXIIAWMlmwO+SHCrZyull2FimAawM9+UTGj2vIqshsocK4o3vo7lDsbN0sBe2eM1Gg== X-Received: by 10.37.111.214 with SMTP id k205mr11454777ybc.175.1484936114677; Fri, 20 Jan 2017 10:15:14 -0800 (PST) Received: from [192.168.1.69] (108-236-186-227.lightspeed.nsvltn.sbcglobal.net. [108.236.186.227]) by smtp.gmail.com with ESMTPSA id y20sm3644283ywg.25.2017.01.20.10.15.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jan 2017 10:15:14 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) In-Reply-To: Date: Fri, 20 Jan 2017 12:15:12 -0600 Cc: PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: <80CDA2D3-0DA2-4ED7-8023-4BE5EBF08779@gmail.com> References: To: Rasmus Schultz X-Mailer: Apple Mail (2.3259) Subject: Re: [PHP-DEV] Not autoloading functions From: pmjones88@gmail.com (Paul Jones) > On Jan 20, 2017, at 01:04, Rasmus Schultz wrote: >=20 > Just a quick thought. >=20 > Since the autoloading functions proposal is stalled, how about = allowing for > import of static functions instead? >=20 > use function Foo::bar; >=20 > bar(); // calls Foo::bar() >=20 ... > at least we can move ahead > and leverage existing code without changes or BC breaks. It's not all = bad. > It's better than nothing perhaps? :-) I find this intuitively appealing. It's an incremental change with = tangible benefit in an imaginable timeframe, as vs a dramatic change in = an unknowable timeframe. However, I am not an internals expert, so I'll leave it to them to say = how big a deal it would be to implement, and what the drawbacks are. --=20 Paul M. Jones pmjones88@gmail.com http://paul-m-jones.com Modernizing Legacy Applications in PHP https://leanpub.com/mlaphp Solving the N+1 Problem in PHP https://leanpub.com/sn1php