Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42771 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15772 invoked from network); 22 Jan 2009 11:06:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jan 2009 11:06:58 -0000 Authentication-Results: pb1.pair.com header.from=rquadling@googlemail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=rquadling@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 72.14.220.155 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@googlemail.com X-Host-Fingerprint: 72.14.220.155 fg-out-1718.google.com Received: from [72.14.220.155] ([72.14.220.155:5370] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D9/00-15341-05358794 for ; Thu, 22 Jan 2009 06:06:57 -0500 Received: by fg-out-1718.google.com with SMTP id 16so1928859fgg.23 for ; Thu, 22 Jan 2009 03:06:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=DbfqK355zDU+MazUXAVVPDbjZ84uZrI9N/WzpR4xzL8=; b=wTaPbtJ5IFhePQlUxpVROOsPxnZxUxzjLF9+34xByv0pSGw0clbXJhb0wYgcH+6siL lfI6v+s0KRsf1Jd9S+US21bT2d1lZDQbYVifCEjXf9geZsf/+DCVd3emfVW/XFBXkPTC cjOPsirssHyAEOCCE0RleNr9x5FDH0QioaM5g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; b=fkZ/bj5XrmpyHUnJxDKuXORTN+qnti7962mLiEotg0zQvKuN7JUl1PBjr2ohNuiwuO am0+lcyHFhshSNQVg6IQWSK1E/F+R62g7fC0eCrH1CYzuPNighRnV3dUJk4nOIXmiVmn fAXxVrZ1P4ekiWwKeHjg6xpKNs6KY1BisCrf8= MIME-Version: 1.0 Received: by 10.223.106.69 with SMTP id w5mr544724fao.17.1232622052691; Thu, 22 Jan 2009 03:00:52 -0800 (PST) Reply-To: RQuadling@googlemail.com In-Reply-To: <200901220003.26866.larry@garfieldtech.com> References: <49778369.4070709@chiaraquartet.net> <200901220003.26866.larry@garfieldtech.com> Date: Thu, 22 Jan 2009 11:00:52 +0000 Message-ID: <10845a340901220300j3bcdd532kb786ee0652962362@mail.gmail.com> To: Larry Garfield Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC lite] implement import of functions in namespace From: rquadling@googlemail.com (Richard Quadling) 2009/1/22 Larry Garfield : > On Wednesday 21 January 2009 2:19:53 pm Greg Beaver wrote: >> 2) adds new syntax to namespaces > > If I'm reading the RFC properly, it extends the existing syntax in a logical > way without introducing any new reserved words. My only question then would > be should we change the way classes are imported to use the keyword "class", > to parallel this syntax? Eg: > > use class Foo\Bar; > use function Foo\fanciness; > > If we're concerned about breaking code written for the existing alphas, > perhaps "class" could be implied if not specified, so that we can recommend > using it but not break existing code? I'm not sure if there's a performance > concern there. > -- > Larry Garfield > larry@garfieldtech.com I like conformity. If my voice counts, I would be happy to accept this as a BC. If necessary, all for "class" to be implied until V6 or V5.4 and mark it as an E_STRICT or E_DEPRECATED ("use Foo\Bar" to include a class is deprecated, use "use class Foo\Bar" instead) sort of thing. This allows current code to run. Tells the alpha testers there code is in need of an upgrade, and gives them time to do so. Richard. -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"