Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52752 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89813 invoked from network); 2 Jun 2011 10:49:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jun 2011 10:49:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=arvids.godjuks@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=arvids.godjuks@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: arvids.godjuks@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vw0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:38048] helo=mail-vw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 28/F6-49351-5AA67ED4 for ; Thu, 02 Jun 2011 06:49:09 -0400 Received: by vwl1 with SMTP id 1so589846vwl.29 for ; Thu, 02 Jun 2011 03:49:06 -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=Rg/2BLn/pXQLh5I86aYbftatG62jPvZlBWk/LkjdvM0=; b=I+Y271fzAEkgp96spB5aFxy64DakS9Wgx6TSYbPIX/2JjF0OrXZYgoNMbuOjFOuipf WEWowERM+IYBuTlzZR3rUB5rELsDKASJTOZHsUThvlfIi/95mYVmjylo0o6QcFU3xgBs OR+q1gZSclw9TLIbQhx9B4BLsc2mFJAWtG7I4= 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=BXk5JHfLygiVMW1s9fAIZQMZKyQwbXf+eNs3eREH9EFsxrrzeyGgL1mAuGaJU9RKCE BJ6Ci/MBHkccLIWmVVFyz0ACs+VzJAol80ssNv2Ul1JgbhpGP+VW//Cg1XS2KqzWYbmy rG8MY83iqi23kYiaE8OOCkK8ZcG/rkpZZ69Kc= MIME-Version: 1.0 Received: by 10.52.93.72 with SMTP id cs8mr715493vdb.116.1307011746329; Thu, 02 Jun 2011 03:49:06 -0700 (PDT) Received: by 10.52.101.230 with HTTP; Thu, 2 Jun 2011 03:49:06 -0700 (PDT) In-Reply-To: <3158105795AAC1408619EC8BA03384A90A3720@EXC-MBX02.leedsmet.ac.uk> References: <4DE5368A.6050603@moonspot.net> <8BEEEE49-8DA3-4634-BF9C-120F7A15B613@roshambo.org> <3158105795AAC1408619EC8BA03384A90A3720@EXC-MBX02.leedsmet.ac.uk> Date: Thu, 2 Jun 2011 13:49:06 +0300 Message-ID: To: "Ford, Mike" Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] RFC: Short syntax for Arrays (redux) From: arvids.godjuks@gmail.com (Arvids Godjuks) 2011/6/2 Ford, Mike : >> -----Original Message----- >> From: John Crenshaw [mailto:johncrenshaw@priacta.com] >> Sent: 01 June 2011 23:00 >> > skip > >> 4. The format most consistent with other languages is JSON > > Again, matter of experience. Last time I counted, I'd used upward of > 30 different programming languages and dialects, some of which had > very bizarre ways of representing things, and none of which (apart > from Javascript!) used a JSON-like array-literal syntax. And, > actually, I *want* my PHP arrays to look different from my > Javascript/JSON arrays, especially as I might be looking at both as > part of the same project -- I *want* a big data structure to scream > "I'm PHP" or "I'm Javascript/JSON" at me, to help trigger my brain > into the right programming mode. > > All of this is just IMHO, of course, and probably a lot more than my > regulation 2 pennorth, but there you go. > > Cheers! > > Mike My thinking too. Mixind PHP arrays & JS JSON in one file with same syntax will be a major headache in the future for many.