Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97897 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43319 invoked from network); 20 Jan 2017 18:55:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jan 2017 18:55:57 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.175 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.161.175 mail-yw0-f175.google.com Received: from [209.85.161.175] ([209.85.161.175:33597] helo=mail-yw0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D6/A6-00729-D3D52885 for ; Fri, 20 Jan 2017 13:55:57 -0500 Received: by mail-yw0-f175.google.com with SMTP id u68so59533727ywg.0 for ; Fri, 20 Jan 2017 10:55:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=TG+MvIVhh74tgzbtkaLOhpqi/TD+0jtOja4cK5HJEhY=; b=FQ7hi/22N57isIhOZ733jicuH+cSBbk2uYXv52FwRC48T/YczZIzKw5WP9RpgI7mnS tnqTAGSEkkEIdeRC0pwUVIrqqj9QZFs6tLPh1POmcrBp7vt5AMqQuXpIgfp6hThm9Yc8 SbgL7KCZQkIc3S8AY71Iy0nXEEeNqFY3AMla0W04Gzt+vHP7Fgp9pAU2Ku1dYwkJ/ADv ga7+eYuZAAZFUjW5cHYY+Xl1RbRckGXxSMZyup0SpXSeCJCRFutEAAEMdOQqcIIbtZ24 TPsofWUvDlCKYvsj6iJ9bRGfNkhb/xuiRqm1Xh7jF9imhLwlpbxHGybfCEK//qjS+V9c eLTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=TG+MvIVhh74tgzbtkaLOhpqi/TD+0jtOja4cK5HJEhY=; b=FNND2Xw+A6aE9/ZlOwHqwrEa8/d3nUevtin+KuVSFfSWrG6qghKSW3LteFQSffqGQj DEu7UJeH4jyMZnURju3iEJflbAX6Que6vALq6k09Ax/y8gibRPvfRK7/9DdnZlpMQ80G kSrRapWpkMP7RmDwTvf87VtTDe8kUgyblTzsTdCyVfemBkyNlMea8bnuYcPbB8ZuUvn/ TESKOrNTxP3j8f9UpcDtPo84tKWMaeGJ9/OzwU/EGCSSfjNsvzkYTh3YU9xD1F1zCPG1 t5QE23nLncFMhqKj89ioS5U9yEyXzLFKMSaBE1LPeqAOHfknySB2xIjLW34fkb5JYhZB NEPQ== X-Gm-Message-State: AIkVDXINMTChFHxHMeppUmxrTC9HnDgJZbl9AO9F0WwPqFheqlkAx6NxfpPX1vKp/QEtvA== X-Received: by 10.129.72.208 with SMTP id v199mr12737830ywa.236.1484938553892; Fri, 20 Jan 2017 10:55:53 -0800 (PST) Received: from Stas-Air-1779.local (108-233-206-104.lightspeed.sntcca.sbcglobal.net. [108.233.206.104]) by smtp.gmail.com with ESMTPSA id g9sm3685349ywa.47.2017.01.20.10.55.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jan 2017 10:55:53 -0800 (PST) To: Rasmus Schultz , PHP internals References: Message-ID: Date: Fri, 20 Jan 2017 10:55:51 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Not autoloading functions From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > Since the autoloading functions proposal is stalled, how about allowing for > import of static functions instead? > > use function Foo::bar; > > bar(); // calls Foo::bar() I'm not sure why it is good. This would certainly be confusing, if you call strlen and turns out it's completely different function from what you thought. One thing when it's the same namespace, at least you can be aware what this package does, but if it's just an arbitrary function from anywhere, it's really bad for understanding the code. How hard is it to write Foo::bar? You never have to go more than one level. I don't see a point in mixing internal function namespace with class methods for the sake of saving typing couple of characters. -- Stas Malyshev smalyshev@gmail.com