Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67102 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69470 invoked from network); 21 Apr 2013 03:00:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Apr 2013 03:00:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=igor@wiedler.ch; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=igor@wiedler.ch; sender-id=unknown Received-SPF: error (pb1.pair.com: domain wiedler.ch from 217.26.49.183 cause and error) X-PHP-List-Original-Sender: igor@wiedler.ch X-Host-Fingerprint: 217.26.49.183 mxout004.mail.hostpoint.ch Received: from [217.26.49.183] ([217.26.49.183:60277] helo=mxout004.mail.hostpoint.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/8C-21652-83653715 for ; Sat, 20 Apr 2013 23:00:12 -0400 Received: from [10.0.2.10] (helo=asmtp001.mail.hostpoint.ch) by mxout004.mail.hostpoint.ch with esmtp (Exim 4.72 (FreeBSD)) (envelope-from ) id 1UTkVV-0005P8-Rf; Sun, 21 Apr 2013 05:00:01 +0200 Received: from [84.73.218.139] (helo=[10.0.1.96]) by asmtp001.mail.hostpoint.ch with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.72 (FreeBSD)) (envelope-from ) id 1UTkVV-000NuW-LI; Sun, 21 Apr 2013 05:00:01 +0200 X-Authenticated-Sender-Id: igor@wiedler.ch Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) In-Reply-To: <5170E1F8.9060203@sugarcrm.com> Date: Sun, 21 Apr 2013 05:00:03 +0200 Cc: "internals@lists.php.net" Content-Transfer-Encoding: quoted-printable Message-ID: References: <5170E1F8.9060203@sugarcrm.com> To: Stas Malyshev X-Mailer: Apple Mail (2.1503) Subject: Re: [PHP-DEV] Importing namespaced functions From: igor@wiedler.ch (Igor Wiedler) > What's wrong with referencing one part of it? It can be as short as = two > characters, and an an added bonus you won't suddenly have your strlen > overridden by somebody without you knowing it. Functions live in = global > space, and there's a real lot of them, that's why importing them = wasn't > considered a good idea - it's going back to the same problem we were > escaping with namespaces. >=20 > Saving two keystrokes while sacrificing clarity is usually not the = best > idea. The same argument could be made for classes. Why import them if you can = just import the namespace? I think it reduces noise and allows imported = functions to be treated as an extension of the language. Without polluting the = global namespace. As it stands, functions are a second class citizen in PHP. It is harder = to use them due to arbitrary restrictions that don't apply to classes.=