Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52591 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7302 invoked from network); 31 May 2011 21:46:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 May 2011 21:46:53 -0000 Authentication-Results: pb1.pair.com smtp.mail=dukeofgaming@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dukeofgaming@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: dukeofgaming@gmail.com X-Host-Fingerprint: 209.85.160.170 mail-gy0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:54280] helo=mail-gy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4B/7F-25701-BC165ED4 for ; Tue, 31 May 2011 17:46:52 -0400 Received: by gyb11 with SMTP id 11so2306766gyb.29 for ; Tue, 31 May 2011 14:46:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=hHmalpgde2Kc4wnw8QBbjVmjerNHCENihA9bdvQaKJo=; b=wp9Mr8uhnZHIeZN6pkzYsh4KAHSdLAjDZdTU36+K3rwEvC5uJs9bGbknpuMAxz6YMN pKstVCU5bhFwpkIThDKzOnVRHCN+odj5Pi55o2z4SJy+kC7LHidlvQ3gxKSXfIQZjhmg b1IVdZIraagUjVpD/to0GtakgU7FMSg9H+agY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=B0ro6KnnC2BDNxfYcQ8Pr4d1FTaLzk0m7vXo+DzRH8bjMIwBPZlvcqpZVM9zNC9Ev9 U1fgwYzTa/QzEsmEdz/BWoZhYUp2qIOWJcH5RzGfyEWkDkKBhKbx6kaCO3V52XZ+HuJt xQVFlEicd/03JDBdZbOBuUw3P9NsOyodFTTwY= Received: by 10.101.166.1 with SMTP id t1mr4182032ano.43.1306878408127; Tue, 31 May 2011 14:46:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.96.15 with HTTP; Tue, 31 May 2011 14:46:28 -0700 (PDT) In-Reply-To: References: <4DE5368A.6050603@moonspot.net> <2BFFEAC1-395E-4101-9452-002E63DCFD91@seancoates.com> <4DE55AB7.9050206@lerdorf.com> <4DE55CDA.302@sugarcrm.com> Date: Tue, 31 May 2011 16:46:28 -0500 Message-ID: To: Stas Malyshev Cc: Rasmus , PHP internals Content-Type: multipart/alternative; boundary=005045015be847f4f604a49957b4 Subject: Re: [PHP-DEV] RFC: Short syntax for Arrays (redux) From: dukeofgaming@gmail.com (dukeofgaming) --005045015be847f4f604a49957b4 Content-Type: text/plain; charset=ISO-8859-1 On Tue, May 31, 2011 at 4:36 PM, dukeofgaming wrote: > Hi, > > I'm glad the topic has been picked up again, but I think there is an > inconsistency in the proposal now that we are talking about being JSON-ish: > JSON describes objects, not arrays. Then, what if "[]" were used for arrays > and "{}" for objects?, so that: > > [1,2,3] //array(0=>1, 1=>2, 2=>3) > ['one':1, 'two':2, 'three' : 3] // array('one'=>1, 'two'=>2, 'three' => 3) > ['one':1, 'two':2, 'three' : 3] // (object)array('one'=>1, 'two'=>2, > 'three' => 3) > > Err, I meant: {'one':1, 'two':2, 'three' : 3} // (object)array('one'=>1, 'two'=>2, 'three' => 3) --005045015be847f4f604a49957b4--