Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34699 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58773 invoked by uid 1010); 11 Jan 2008 11:55:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 58757 invoked from network); 11 Jan 2008 11:55:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jan 2008 11:55:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=troelskn@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=troelskn@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.189 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: troelskn@gmail.com X-Host-Fingerprint: 209.85.198.189 rv-out-0910.google.com Received: from [209.85.198.189] ([209.85.198.189:6236] helo=rv-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 52/25-27385-44957874 for ; Fri, 11 Jan 2008 06:55:49 -0500 Received: by rv-out-0910.google.com with SMTP id k15so912022rvb.23 for ; Fri, 11 Jan 2008 03:55:46 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=tbUGCyxPTyDnhl2RKKyQjfzj9S4oJfgaocjesO/k7N8=; b=Mr2oMVIGQKHrh5lTu1EkkfWX8NMkdJ5Ll4Lait1yirgGufZRyo1cY8X60zx5S0vuzmrfxPFzWsrNhMBDlcXLerOVltVCmT7UabHW2ZlqyB1G4TG1shEOCUdXiIJI1OKM43aY+VIH7MJALdDW0xGxbZ02zJAXjMYSR/FvEeQg+GA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=C4MUTxw5jdw/l3TkwPFhlPDLg0wQ3cuiioIeV/zcMQaTtYKps4SGfQaBaZs6YMH2JPlNL0XKjyzyc/vxx7V82ALyfZFG3FJpA7Qs5VO0XhGEMN+ByAq897chvS4AmvhSOK2BiRDA+lWVUYQGCdZzOxD1fv7XrwSxORWbHEMZJPA= Received: by 10.141.28.12 with SMTP id f12mr1958667rvj.1.1200052546786; Fri, 11 Jan 2008 03:55:46 -0800 (PST) Received: by 10.141.50.16 with HTTP; Fri, 11 Jan 2008 03:55:46 -0800 (PST) Message-ID: <98b8086f0801110355r535de67bp8b5eb5e4e7866482@mail.gmail.com> Date: Fri, 11 Jan 2008 12:55:46 +0100 To: internals@lists.php.net In-Reply-To: <5947f2ab0801110349y3a733854yd9093593e248e882@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <698DE66518E7CA45812BD18E807866CE011C7C7E@us-ex1.zend.net> <08.94.51656.F8937874@pb1.pair.com> <1200048864.4755.9.camel@johannes.nop> <36.21.27385.B1F47874@pb1.pair.com> <4787530E.3000009@krug.dk> <5947f2ab0801110349y3a733854yd9093593e248e882@mail.gmail.com> Subject: Re: [PHP-DEV] Re: Array syntax [] From: troelskn@gmail.com ("troels knak-nielsen") One problem, I have with this proposal is, that it isn't much like javascript anyway. In javascript, there is a distinction between array and hashmap, with different syntaxes. If anything, the syntax should probably be {'foo' => 1, 'bar' => 2}. I don't think the added noise is worth it though, since we already have a syntax, which has worked for a decade. Having two different syntaxes, for the exact same thing, isn't that great an idea. All IMHO, of course. -1 for those counting. -- troels (Which is in fact pronounced trolls)