Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97970 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 795 invoked from network); 26 Jan 2017 16:52:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jan 2017 16:52:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@mindplay.dk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@mindplay.dk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mindplay.dk from 209.85.216.175 cause and error) X-PHP-List-Original-Sender: rasmus@mindplay.dk X-Host-Fingerprint: 209.85.216.175 mail-qt0-f175.google.com Received: from [209.85.216.175] ([209.85.216.175:33561] helo=mail-qt0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 64/40-28703-A492A885 for ; Thu, 26 Jan 2017 11:52:29 -0500 Received: by mail-qt0-f175.google.com with SMTP id v23so84417997qtb.0 for ; Thu, 26 Jan 2017 08:52:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mindplay-dk.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=WvQdoiOAJdy/d+dxdQZBEJJEGgtGF00PF3/dvoJlkzo=; b=RQHbU2CPEopqfbfVFxZXXfvQp7E1cw+2zVhunt/zYiPdNkQJc/RIZu9954Bh/6OEq/ KxXoz0GVHlJlOIpw23KTNAVkj7FQ9MGd8L4nPPosx4LIY5m3F6NpwLCW9OokDRV/X4Ow oD46OvF8rOx0Bl48ZxMbliep1cj7mwV5h5ym+P5TXOHYuVXCiGbNyMyBa6jDA6l12cD8 Pq1dA3ebjNOJXOgB31MPYFJF1opuJd1g1vDSAswWscX2Vjcykqg4jM8lOcEtbTQBOFg/ oAkkazNO5/jcZMf2LwERl+CLi/GcNa9OJt2yWYolGn+r5c58TmT+ywPYOI0yL8WcTODu eUcw== 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:cc; bh=WvQdoiOAJdy/d+dxdQZBEJJEGgtGF00PF3/dvoJlkzo=; b=HLX6j/iV6gr8v+tAQCzW6DBVTpl/qpY249azZc+2O+/p1iv5tSigg260SdfEvRYZzn ZX/MVFFO2hkm9YXwWCvKRF+UKX4YIsmKxkkDrtr/snSUL6lz1N25ar3fCiDG+wsDPpEE gHs7VasQwTGRqXuSzjk9F54baA26Pjk9dkd3iWPS/y5o0MvJEecp51PvUFO7KO/pcnDC LoNvsGQF+x5+R5GKFtfgAoYxF7q6cGM4vSaNRR/yH8pdfAw/Lp270jOCmM9Sqtxin7yd iBrJMqJZtVqTBa0YkEHxdPpcN3MAENkvocWXW9xak9Am6y8CPFD1moEyVTwbmSieBuh5 D8dQ== X-Gm-Message-State: AIkVDXJdrLyjbZ9hgqnSQp0h4Sks9BLJN5duLpn7xy4qHbICQ7vOMeG1TDGHdlqDzG5naSCIhMnR+P4DOmua9A== X-Received: by 10.55.165.67 with SMTP id o64mr3613315qke.124.1485449543447; Thu, 26 Jan 2017 08:52:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.47.231 with HTTP; Thu, 26 Jan 2017 08:52:22 -0800 (PST) Received: by 10.237.47.231 with HTTP; Thu, 26 Jan 2017 08:52:22 -0800 (PST) In-Reply-To: <24.D0.04124.AABB9885@pb1.pair.com> References: <24.D0.04124.AABB9885@pb1.pair.com> Date: Thu, 26 Jan 2017 17:52:22 +0100 Message-ID: To: Andrea Faulds Cc: PHP internals Content-Type: multipart/alternative; boundary=001a114f9f7a5ec8b70547022c3a Subject: Re: [PHP-DEV] Re: Not autoloading functions From: rasmus@mindplay.dk (Rasmus Schultz) --001a114f9f7a5ec8b70547022c3a 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... On Jan 26, 2017 10:05 AM, "Andrea Faulds" wrote: > Hi, > > Rasmus Schultz wrote: > >> Since the autoloading functions proposal is stalled, how about allowing >> for >> import of static functions instead? >> > > The problem with stop-gap measures is they become entrenched, and the > proper solution doesn't get implemented. But we may be at the risk of the > latter anyway. > > -- > Andrea Faulds > https://ajf.me/ > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a114f9f7a5ec8b70547022c3a--