Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52715 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38101 invoked from network); 1 Jun 2011 22:17:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jun 2011 22:17:53 -0000 Authentication-Results: pb1.pair.com smtp.mail=mike503@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mike503@gmail.com; sender-id=pass; domainkeys=bad 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: mike503@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:49171] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 33/26-32367-E8AB6ED4 for ; Wed, 01 Jun 2011 18:17:51 -0400 Received: by bwz18 with SMTP id 18so499534bwz.29 for ; Wed, 01 Jun 2011 15:17:45 -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:date :message-id:subject:from:to:cc:content-type; bh=unvmOVze6+IEKyeU8WyyPsPmpqqQQ+/o7Ql8kFF4oCw=; b=cdXqZQcUZ3QFbzbEpVQLtxjRCV/1dSXkgs7hT/JVGAYJ14Vm59RtKy40yJN9ROwHDn Mex8uGo6E+fN/YYvPTjs+vNCGrU0k9OmVNSqtuPabM2gRRVgRUWylr7sXV0l5ymnj6Xf yZZFniuJqfGi32W/PvMHhOIOJRWZS1q74c4sI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=uzKfbzieAPJ59MdFQJ62h9mb6lbVgV/DowEIDfLr1oJRSsiBpmddBkmEWle4nfpLGX +aQn7p6/G9Tt33Iomg5oV35eNRwf9GaBMVHHpiiXVRpUvhmNSFkRyxPl7qUFcm1NnZ4l PCJWcFV23/Fmx1ttJdNjDz9+AYNHP8ez8K9mg= MIME-Version: 1.0 Received: by 10.205.37.2 with SMTP id tc2mr32651bkb.14.1306966665429; Wed, 01 Jun 2011 15:17:45 -0700 (PDT) Received: by 10.204.140.16 with HTTP; Wed, 1 Jun 2011 15:17:45 -0700 (PDT) In-Reply-To: References: <4DE5368A.6050603@moonspot.net> <8BEEEE49-8DA3-4634-BF9C-120F7A15B613@roshambo.org> Date: Wed, 1 Jun 2011 15:17:45 -0700 Message-ID: To: Sean Coates Cc: Anthony Ferrara , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] RFC: Short syntax for Arrays (redux) From: mike503@gmail.com (Michael Shadle) On Wed, Jun 1, 2011 at 3:09 PM, Sean Coates wrote: > This is not about saving five characters every time I type array(), it's about making my systems all work together in a way that's a little less abstracted, and a lot less prone to error. Why not make your data in JSON and then $foo = json_encode($data) ? Why try to adopt JSON to PHP, just so it matches another language's format? You do realize adding JavaScript syntax for arrays will only make that consistent with JavaScript, otherwise you're still coding PHP with PHP syntax, functions, etc. for everything else. That argument seems moot. If you're more comfortable with JavaScript, start developing in node if that is your cup of tea.