Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94939 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98469 invoked from network); 8 Aug 2016 16:48:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Aug 2016 16:48:37 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.50 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.50 mail-wm0-f50.google.com Received: from [74.125.82.50] ([74.125.82.50:34996] helo=mail-wm0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DE/04-33134-5E7B8A75 for ; Mon, 08 Aug 2016 12:48:37 -0400 Received: by mail-wm0-f50.google.com with SMTP id f65so128104334wmi.0 for ; Mon, 08 Aug 2016 09:48:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:from:to:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=Kq7aNKaUuO2s8KENTIyX6qOqI09gw3tPgwh5UDNfwPc=; b=pDJzvPtIlluSJpeev4skE8GmiBxR+k8m1oqHutkcXVIiOdaTE56O2b30cd78bCpmWr AThyG9L7UisRnytUXmXi8T95Ar7l+BOEKez7uvQ2UOwpxpDok8aPRDZo3slUFHDwhBSG ag9ZKNtj7w5ofHnpnjcBuSJIG0nndk7IBeLMqkn/XeGWyx0cd/esypmyJEx32MCzHR/A GzzYRie1bkgSK12AIA3Ugk8czJUvM4iXR4KQX3D+4+Ns4ajErAduQsRJiSYYItU561iK C0uF5CQnjR2ktiYOv76Dca1BqHTWN2RzqdtONIYMTL/wKmSvu3yoNCOrwmcvhcg+GyOY nudw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:references:from:to:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=Kq7aNKaUuO2s8KENTIyX6qOqI09gw3tPgwh5UDNfwPc=; b=X1BSJCEmPrtntEiOPnt3kVhZdxwpGRRhVCxN6vbbrTID7U9MGiide4//MM2LZ4Gfo6 W6cKMMh1AYUeQ2pju2Lc8U/5sE7WASfvszodkaNtMpCFsgLE85TTcbirlduR0IwsgUR2 2ZvT6P2nBoAN8AzxtMh43QQzi+gnox2IMwgpoF2s8YkjetINDflGU1WwTOj0347u26VG xHbfEcbFeVlJ13O7aBZXKGcGFz4EdYGSDeAUL/sSCW5IE3slrBek+XJ6gPGs9bjo4Vlz +UsFidfdCx0CNwPUj91JTl4wxRwO0ji6k/RYll8YqjGfJktdlJjN/zXEOG7a8xsISp9y /2Yg== X-Gm-Message-State: AEkoouus+mgv0x0y0k8Vsi0eyXUG5MpuRsIEI5Wr0dzBO6Z7UaN/FBkr/BiH98O6YiCPiw== X-Received: by 10.194.65.72 with SMTP id v8mr93355001wjs.103.1470674914104; Mon, 08 Aug 2016 09:48:34 -0700 (PDT) Received: from [192.168.0.98] ([93.188.182.58]) by smtp.gmail.com with ESMTPSA id wc3sm33767664wjc.47.2016.08.08.09.48.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Aug 2016 09:48:33 -0700 (PDT) References: To: internals Message-ID: <33781781-2a63-78c1-68a1-9e19ad720d8d@gmail.com> Date: Mon, 8 Aug 2016 17:46:21 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Function auto-loading From: rowan.collins@gmail.com (Rowan Collins) On 08/08/2016 17:00, Levi Morrison wrote: > I think saying "add a backslash in front of your function names to > avoid them being slow" will just lead to lots of "lol wtf php sux". > > > They'll say the same when function and class autoloading don't work the > same way anyway. I think unifying their behavior over time is the best > solution forward. Yes, I'm talking about a BC break eventually, but the > suggestion to autoload only fully qualified function names could buy us > the time to make that BC break less severe. Do you mean eventually changing the name resolution rules for functions to match those for classes? I wasn't around at the time it was discussed, and if we were adding them now would be tempted to say the leading \ should always be mandatory, just like it is for classes. But since we have what we have, I don't see that big an advantage to changing it. If not, I don't see why we ever need to be able to autoload global functions. "You want autoloading? Put it in a namespace." Like I say, that leaves the very small edge case of a single namespace spanning multiple files, and an autoloader implementation able to include one of them when a function is called from another. Regards, -- Rowan Collins [IMSoP]