Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52617 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53931 invoked from network); 1 Jun 2011 00:57:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jun 2011 00:57:16 -0000 Authentication-Results: pb1.pair.com header.from=ekneuss@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=ekneuss@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: ekneuss@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:62400] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BB/88-25701-B6E85ED4 for ; Tue, 31 May 2011 20:57:15 -0400 Received: by bwz18 with SMTP id 18so4597532bwz.29 for ; Tue, 31 May 2011 17:57:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=FI7lXNSGYnx3kqF+2B6HgdaIcUR/sm83oiaQg/rAdiE=; b=BpW1JTtQNfV6oYDx19ujb5MEeAvx8LFUE9HiigLk1nlK2hd6zq6UuFmXrtWHYBEqDF 7mIhlZH6t9qwND/wZmKDGXHiNVc1FsCdbtbSSqMxRmnvmqe4eWF5UND4oj/ozpSxDxiW FBZhTYlKnsTVXrsuw96DE+gtbHP7HZxNxDIr8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=IR95hLyxLspjJDRjUoATd2XgZtTa42pFMEtDlXqkQaNxbWfOO7m3hb/P6l4rZJgw8c iUXtadodDmSDSOcshCn7S1f7tSnpSXvGB2XIJasCsCoKJ3xP42rPkRy7/eK6wS7KbAaa CvwzC/KkbhyUTbvWvo1c4Q5GFZQy0X7KU0Pow= MIME-Version: 1.0 Received: by 10.204.74.218 with SMTP id v26mr6273120bkj.76.1306889832179; Tue, 31 May 2011 17:57:12 -0700 (PDT) Sender: ekneuss@gmail.com Received: by 10.204.66.195 with HTTP; Tue, 31 May 2011 17:57:11 -0700 (PDT) In-Reply-To: References: Date: Wed, 1 Jun 2011 02:57:11 +0200 X-Google-Sender-Auth: nM4tlPqjP-j-2IYW2b80vY3NNYM Message-ID: To: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: RFC: Short syntax for Arrays (redux) From: colder@php.net (Etienne Kneuss) +1 for a short array syntax. But only if you keep it consistent, PHP has always been using => for key/val association, I don't see any reason to suddenly provide "key": "val", unless what you want is to confuse people. On Wed, Jun 1, 2011 at 02:42, dukeofgaming wrote: > On Tue, May 31, 2011 at 7:29 PM, Dan Birken wrote: > >> +1 >> >> To be honest, ['a': 'b'] or ['a' => 'b'] is so much better than array('a' >> => >> 'b') for general use I don't even care which one is picked, as long as one >> of them is picked. >> >> -Dan >> > > +1 to that too. Even when I've never liked that much "=>" and would love to > see ":" make an entrance instead . > > I'm afraid that if ":" is associated with the JSON interop argument and the > later is discarded then ":" will be discarded too, much like what happened > with the echo shortcut (" of JSON interop could be taken to another RFC and get less noise and better > ideas as a separate topic. > > Regards, > > David > -- Etienne Kneuss http://www.colder.ch