Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34759 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8291 invoked by uid 1010); 12 Jan 2008 01:02:09 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 8275 invoked from network); 12 Jan 2008 01:02:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jan 2008 01:02:09 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.188 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.198.188 rv-out-0910.google.com Received: from [209.85.198.188] ([209.85.198.188:55326] helo=rv-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F5/51-31723-F8118874 for ; Fri, 11 Jan 2008 20:02:08 -0500 Received: by rv-out-0910.google.com with SMTP id k15so1092486rvb.23 for ; Fri, 11 Jan 2008 17:02:05 -0800 (PST) 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=eiBwjjnlYpBU3rE93Hkuhop5hQktS7a0UoubGum2SYA=; b=aa0n0xoW1B/dZWzqF4sqt3nwsHSrVwuECDZopLCLp+jf5rNolPHlKnhXtWbQ9xBYuMFSX58ww2htVM15hAGtlmba1OoacFS45hVmthAEAZJCNPqbzLcjGOLCrFAVKP4EHrsJCfApLnnLimWb1/muVsjxvYM/kwx160DsC0gxjr8= 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=Xx/Mvw2A0bTUXUYsugrtZzsmw6SRGvvh1Z9s4kpstGAB1mDnVRKmhgKUPRAWAUXrcWoC1/4TxSaNZNYqoLWJwkEGi3OIqaEPI7B0tga/jC+1zW6DgOyNJ4mAXBS3UeEcBEyc2FMGHoNC+j8uGIN1j0wbQT/YwSFZkDn8aMXti0w= Received: by 10.140.187.10 with SMTP id k10mr2424084rvf.95.1200099725333; Fri, 11 Jan 2008 17:02:05 -0800 (PST) Received: by 10.141.70.21 with HTTP; Fri, 11 Jan 2008 17:02:05 -0800 (PST) Message-ID: Date: Sat, 12 Jan 2008 02:02:05 +0100 To: "Jeff Griffiths" Cc: "Gregory Beaver" , internals@lists.php.net In-Reply-To: <47880FBE.6030508@activestate.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1200066425.7376.9.camel@johannes.nop> <1200077257.12559.7.camel@sbarrow-desktop> <4787BE7C.6080205@zend.com> <1200078780.12559.14.camel@sbarrow-desktop> <4787E50A.1000108@daylessday.org> <4787EF30.8000306@daylessday.org> <4787F9A4.2080700@activestate.com> <4788052B.6040101@chiaraquartet.net> <47880FBE.6030508@activestate.com> Subject: Re: [PHP-DEV] SUMMARY: Array syntax From: pierre.php@gmail.com (Pierre) On Jan 12, 2008 1:54 AM, Jeff Griffiths wrote: > > if (1) { > > $a = [ > > [ > > ['a' => 1, 3], > > ($b = 3), > > ] > > ]; > > } else { > > $a = [ > > [ > > ['b' => 1, 3] > > ] > > ]; > > } > > I agree, that's a bit nasty. =) Like a string full of variables, arrays and objects can be unreadable :) But I can't stop thinking about code like: [ [-1.0, 0.0, +1.0], [-2.0, 0.0 , +2.0], [-1.0, 0.0, +1.0]] and I will use this new syntax only with such cases like this one :) (variables in string are nice, when used with moderation/caution) -- Pierre http://blog.thepimp.net | http://www.libgd.org