Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41245 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2313 invoked from network); 17 Oct 2008 19:34:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Oct 2008 19:34:09 -0000 Authentication-Results: pb1.pair.com header.from=phpwnd@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=phpwnd@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.238 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: phpwnd@gmail.com X-Host-Fingerprint: 209.85.198.238 rv-out-0506.google.com Received: from [209.85.198.238] ([209.85.198.238:62612] helo=rv-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 28/52-19022-1B8E8F84 for ; Fri, 17 Oct 2008 15:34:09 -0400 Received: by rv-out-0506.google.com with SMTP id g37so786176rvb.23 for ; Fri, 17 Oct 2008 12:34: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=TOPyh+iZHnDUk3suTYbN2+S+1p28FCjCgXbkM+AeycQ=; b=qYX7mNjNsB0iD4fN+DjCHxS/q/Aac2wMrEYwm9bOU6zN1aLQAzxe3WBojaJb9xf3Fg dlaVBXhrdbYGOBP5hs72FAL/hXebOIaGV4tKni9oN3sJD0vARFmbfwlv/k9/vylrA6wG 5ZMn+dRB+Yyu72BMhh6RrxjqECKK+orm++APc= 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=XFf27UX5JPur20S//9lxP/sdgcfXp0J2I/xzwQllXraTGZi3/hyMrZyD3/T6swwqkn v1yamHpGs6lWmYWE8AnO54fOhyCG04fPQDu2oxhYz75BPuSs3YjKyNsZdAG7jTop05sh qQ2KukzKqSdVnxy/bEeF4Z7edSRwZxkXVKuyQ= Received: by 10.141.179.5 with SMTP id g5mr2752752rvp.237.1224272046992; Fri, 17 Oct 2008 12:34:06 -0700 (PDT) Received: by 10.141.83.21 with HTTP; Fri, 17 Oct 2008 12:34:06 -0700 (PDT) Message-ID: <11c607a60810171234q64b33f0aq5618a4f7ffb4587c@mail.gmail.com> Date: Fri, 17 Oct 2008 21:34:06 +0200 To: "Mike Willbanks" Cc: internals@lists.php.net In-Reply-To: <34eeaeca0810171157i69004c21g3ae94eadc91bd094@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <02fe01c92fc6$0b2d0660$3ffc1f3e@foxbox> <7D.26.12818.A13F7F84@pb1.pair.com> <027901c92ffe$b4d11610$3ffc1f3e@foxbox> <48F8C2C9.90303@zend.com> <02ef01c9307a$ede8f360$3ffc1f3e@foxbox> <34eeaeca0810171157i69004c21g3ae94eadc91bd094@mail.gmail.com> Subject: Re: [PHP-DEV] Re: Sanity tally #2 From: phpwnd@gmail.com ("Josh Davis") 2008/10/17 Mike Willbanks : > 1. #3 - it is much cleaner to read than the other implementations in > resolving the conflict. a different separator will be much harder to simply > see from a comparison. I beg to differ. A different separator (namespace scope resolution operator) gives immediate feedback about a statement, e.g. "foo:>bar()" is unambiguously a call to function bar() from namespace foo, whereas a solution based on top-level declarations requires to go back possibly 1000's of lines above the statement to check whether "foo::bar()" is a call to static method bar() of class foo, or function bar() of namespace foo. To put it in other words, when you're reading line #1234 of a script, you can't be sure of what foo::bar() does unless you clearly remember the "use" statements at the top of the file or go back to check them. Not to mention that you also need to remember the top declarations or remember which aliase(s) you gave to "foo" as a namespace and "foo" as a class, if you're using both in the same file. JD