Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38059 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47328 invoked from network); 1 Jun 2008 17:30:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jun 2008 17:30:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=hannes.magnusson@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=hannes.magnusson@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.92.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: hannes.magnusson@gmail.com X-Host-Fingerprint: 66.249.92.170 ug-out-1314.google.com Received: from [66.249.92.170] ([66.249.92.170:55883] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E4/12-35077-0BCD2484 for ; Sun, 01 Jun 2008 13:30:25 -0400 Received: by ug-out-1314.google.com with SMTP id h3so174394ugf.29 for ; Sun, 01 Jun 2008 10:30:21 -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=nKlwL4yRCF8MgUNn+9O65RNiRTMRzXiBMddz1cb7TlA=; b=VKu3CxceohqwDcFGqTYAiqusvm8P39hQmAtciQuqNpaZb9NfVcTSzQG/sX0A717rDs o0KaSxgrz3sFuqHVNaCcdFUYswMWKBMO/9bex/JmUe8NpQ3v3q9P16v8wCV71vLktCmj 2/rm04CUf05U+bsB8sMZIhmtQPhkjxYCvQR2U= 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=FXmmRcEH5mAeAV+ec71jHV52QP0483pWO0DChapvRmnzBLpMpd6+NA3uJTeANu1YHO GskbJ1dD28qLnKKAm5pq1ftMeT6A2hHInbUJ0RnXR2YoG5PMQd7nUeFmRynlLccUkhOo GAhD90bQYc2Jslgb+oBW4GVEjDKb4NoFE+7As= Received: by 10.66.244.2 with SMTP id r2mr1551458ugh.35.1212341421021; Sun, 01 Jun 2008 10:30:21 -0700 (PDT) Received: by 10.67.25.8 with HTTP; Sun, 1 Jun 2008 10:30:20 -0700 (PDT) Message-ID: <7f3ed2c30806011030q73608bfo40ce3bddbb80f56d@mail.gmail.com> Date: Sun, 1 Jun 2008 19:30:20 +0200 To: "Stanislav Malyshev" Cc: "PHP Internals" In-Reply-To: <4842D84D.50509@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4842C9AF.6040803@zend.com> <7f3ed2c30806010943k79790024hf0e83bf5ea5a5340@mail.gmail.com> <4842D84D.50509@zend.com> Subject: Re: [PHP-DEV] multiple use From: hannes.magnusson@gmail.com ("Hannes Magnusson") On Sun, Jun 1, 2008 at 7:11 PM, Stanislav Malyshev wrote: > Hi! > >> I find the whole namespace issue complicated enough as it is. >> "importing" multiple namespaces and "aliasing" various >> classess/functions all in one line decreases the readability imo. > > I must say I fail to understand how it's decreasing readability. Is function > foo($a, $b, $c) hard to read? Is array(1, 2, 3) hard to read? Is global $a, > $b, $c hard to read? is implements Foo, Bar, Baz hard to read? Is const $a = > 1, $b = 2 hard to read? What exactly is hard in it? use FooBar::In::Some::NameSpace as foo, SomeOther::Cool:Massive::awesome::space as bar, And::other:namespace as foobar; vs use FooBar::In::Some::NameSpace as foo; use SomeOther::Cool:Massive::awesome::space as bar; use And::other:namespace as foobar; > Almost all structures in PHP that allow multiple elements allow definitions > chained with , - const, var, static, etc. What makes this one so special > that it becomes unreadable one it has comma in it? You are comparing apples and oranges. Do we allow foreach($array as $key => $arrayval as $key2 => $val) ? -Hannes