Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97972 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6412 invoked from network); 26 Jan 2017 17:50:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jan 2017 17:50:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.221 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.221 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.221] ([81.169.146.221:29334] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C4/21-28703-DC63A885 for ; Thu, 26 Jan 2017 12:50:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1485453002; l=2608; s=domk; d=kelunik.com; h=Content-Type:Cc:To:Subject:Date:From:References:In-Reply-To: MIME-Version; bh=gl4x7SlJYEGFDoK69AAoWYF9efKR/LrvwGOOmhah39U=; b=chZStjyguncgufTiGyfxivfUksR1J7FYgWvDD4NfrDITCoWGc81K4uRzVsGm4HGBWZ ANanMNfRG615Z0Kc4GZDUXPpw4y04TYvX1s7O51ds22vNPKwd7jr0dHzjf25sqfzYZR0 ErUYtrdffSTeeAxzk5YXYyXwaxCliovCMW/NA= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLDup6E67mzuoNJBqD+uV8= X-RZG-CLASS-ID: mo00 Received: from mail-qt0-f169.google.com ([209.85.216.169]) by smtp.strato.de (RZmta 39.11 AUTH) with ESMTPSA id z08577t0QHo21y9 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp384r1 with 384 ECDH bits, eq. 7680 bits RSA)) (Client did not present a certificate) for ; Thu, 26 Jan 2017 18:50:02 +0100 (CET) Received: by mail-qt0-f169.google.com with SMTP id k15so87706024qtg.3 for ; Thu, 26 Jan 2017 09:50:02 -0800 (PST) X-Gm-Message-State: AIkVDXJUr8U+0nadZTjpn47VJwJ2ggPFBXPePr6IVdPy4syhi/KvTDiB7C0T5HbO/BChASQUrGg/dAwu7LmUag== X-Received: by 10.55.165.142 with SMTP id o136mr4013625qke.113.1485453001491; Thu, 26 Jan 2017 09:50:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.144.132 with HTTP; Thu, 26 Jan 2017 09:50:01 -0800 (PST) In-Reply-To: References: <24.D0.04124.AABB9885@pb1.pair.com> Date: Thu, 26 Jan 2017 18:50:01 +0100 X-Gmail-Original-Message-ID: Message-ID: To: Rasmus Schultz Cc: Andrea Faulds , PHP internals Content-Type: multipart/alternative; boundary=94eb2c05e90e7c1494054702fafd Subject: Re: [PHP-DEV] Re: Not autoloading functions From: me@kelunik.com (Niklas Keller) --94eb2c05e90e7c1494054702fafd Content-Type: text/plain; charset=UTF-8 > > > The problem with stop-gap measures is they become entrenched, and the > proper solution doesn't get implemented > > This would be my general point of view - unfortunately, functions are > essentially useless at present, in a world with Composer, unless you're > willing to preload all functions from all packages up-front. > > The only suggested solutions I've heard for the name resolution issue with > function autoloading frankly are all horrible - much worse than this simple > alternative. > > Add to that the fact that likely 90% of all functions in the wild (at least > in Composer packages) are currently implemented as public static functions, > and in my opinion, this is starting to sound less like a stop-gap and more > like a simple solution to a problem we've been solving with a stop-gap for, > oh, 10 years or so... Again, if you choose to use static methods instead of functions, why do you need this special syntax for calling them then? Regards, Niklas --94eb2c05e90e7c1494054702fafd--