Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41506 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76423 invoked from network); 28 Oct 2008 12:35:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Oct 2008 12:35:13 -0000 Authentication-Results: pb1.pair.com header.from=josh.sickmate@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=josh.sickmate@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.92.171 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: josh.sickmate@gmail.com X-Host-Fingerprint: 66.249.92.171 ug-out-1314.google.com Received: from [66.249.92.171] ([66.249.92.171:62633] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F0/C1-00734-EF607094 for ; Tue, 28 Oct 2008 07:35:12 -0500 Received: by ug-out-1314.google.com with SMTP id 39so233878ugf.37 for ; Tue, 28 Oct 2008 05:35:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=WTxWcm3nTAKLrlSdTo8rGu0idwxJhRe8RBzTM2Uncxk=; b=aG/4a7KeZCE8YcmEahUlnOvz2pS8MJJbjXNNCCGT0m/Su/oLtEbgOPaHxHMQL9TWxa ijd4cyRNzHxm0Zg8VNjY1FryRLlKGehBz8Z53KHquFXqUzpgl+/IFeqiLB/097k/pj4d K/4e/ROZzNTQFN9vhYhnONKrIonkDqamkcZds= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=vJaG6ddIEC/Gm3JMDF6YtSNQqdJwZXItAv1iEV9b5zwstbw5rpl+9teqGyuDXhLrCI Bgr5HYlTaIXcFqga75TCVkwEqrSzUYxd0ma/fJ0b9ashQeNqJ6/j4POvYXYGQAAiAK87 ef3kft+6Cf5pb09dMMA590AJ7LG9XoQKrozMM= Received: by 10.210.71.13 with SMTP id t13mr8298788eba.8.1225197307800; Tue, 28 Oct 2008 05:35:07 -0700 (PDT) Received: by 10.210.57.19 with HTTP; Tue, 28 Oct 2008 05:35:07 -0700 (PDT) Message-ID: <6fef9b880810280535j43bcbdbvef2531f471578697@mail.gmail.com> Date: Tue, 28 Oct 2008 23:05:07 +1030 To: nathan@kraya.co.uk Cc: internals@lists.php.net In-Reply-To: <5A.30.00734.70AF6094@pb1.pair.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <69907CB6763C4164A1AE82D659B80286@pc> <5A.30.00734.70AF6094@pb1.pair.com> Subject: Re: [PHP-DEV] Re: Clarifying the resolution rules From: josh.sickmate@gmail.com (Josh) We are going to ignore the inherit problems that calling file_get_contents(__FILE__); would cause... Also, I disagree with a PHP namespace. the looseness of the language is one of its strong points. Some things should be made strict, I agree, bit it start with a php namespace and where does it end? If your not careful you end up with c# or java where doing anything requires going through hundreds of classes and packages. Josh On Tue, Oct 28, 2008 at 10:09 PM, Nathan Rixham wrote: > Stan Vassilev | FM wrote: >> >> Opinions about how disruptive a mandatory backslash for global symbols *in >> namespaces* would be, are welcome. Keep in mind that making the backslash >> optional will lead to code breakage (such as for above drop-in replacements, >> class autoloading etc.) and slower performance (runtime resolution of >> function calls). > > personally not very disruptive, and after a few hours I think it would > become second nature. > > I'm sure there will be a few comments about this, but.. why not move all > internal functions and classes to a php namespace so that everything has to > be in a namespace by default - ie no code that isn't in a namespace. > > ie > php\file_get_contents(__FILE__); > instead of > \file_get_contents(__FILE__); > > major major change but nice and strict > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >