Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52709 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25663 invoked from network); 1 Jun 2011 22:00:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jun 2011 22:00:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=johncrenshaw@priacta.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=johncrenshaw@priacta.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain priacta.com designates 64.95.72.238 as permitted sender) X-PHP-List-Original-Sender: johncrenshaw@priacta.com X-Host-Fingerprint: 64.95.72.238 mx1.myoutlookonline.com Received: from [64.95.72.238] ([64.95.72.238:45877] helo=mx1.myoutlookonline.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/93-32367-A76B6ED4 for ; Wed, 01 Jun 2011 18:00:29 -0400 Received: from st21.mx1.myoutlookonline.com (localhost [127.0.0.1]) by mx1.myoutlookonline.com (Postfix) with ESMTP id B83BF553529 for ; Wed, 1 Jun 2011 18:00:04 -0400 (EDT) X-Virus-Scanned: by SpamTitan at mail.lan Received: from HUB016.mail.lan (unknown [10.110.2.1]) by mx1.myoutlookonline.com (Postfix) with ESMTP id CABCB553478 for ; Wed, 1 Jun 2011 18:00:00 -0400 (EDT) Received: from MAILR001.mail.lan ([192.168.1.2]) by HUB016.mail.lan ([10.110.17.16]) with mapi; Wed, 1 Jun 2011 17:59:04 -0400 To: PHP internals Date: Wed, 1 Jun 2011 17:59:53 -0400 Thread-Topic: [PHP-DEV] RFC: Short syntax for Arrays (redux) Thread-Index: Acwgofp5pgXOBlBvQruDgo3fRcjr9AAAM8Tg Message-ID: References: <4DE5368A.6050603@moonspot.net> <8BEEEE49-8DA3-4634-BF9C-120F7A15B613@roshambo.org> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: RE: [PHP-DEV] RFC: Short syntax for Arrays (redux) From: johncrenshaw@priacta.com (John Crenshaw) Spot on. It has nothing to do with extra typing (and that sort of design is= part of what ruined Ruby). My fingers move plenty fast and if extra charac= ters make things more safe or more readable, I'll be the first to sign up. = In this case, however, the extra characters just make things messy. 1. The most readable format is pure JSON 2. The most familiar format is pure JSON (because these same developers are= almost certainly already using it in their jQuery code) 3. The most compact format is pure JSON 4. The format most consistent with other languages is JSON John Crenshaw Priacta, Inc. -----Original Message----- From: Chris Stockton [mailto:chrisstocktonaz@gmail.com]=20 Sent: Wednesday, June 01, 2011 5:23 PM To: Michael Shadle Cc: Pierre Joye; PHP internals Subject: Re: [PHP-DEV] RFC: Short syntax for Arrays (redux) Hello, On Wed, Jun 1, 2011 at 1:37 PM, Michael Shadle wrote: > On Wed, Jun 1, 2011 at 1:01 PM, Pierre Joye wrote: > > 5 character difference for each array being saved. That's it. At the > expense of syntax highlighters, IDEs, books, all becoming outdated and > need to be updated. For a language construct that has been around for > what, 10 years? > My desire and perhaps the viewpoint of many others to use ":" over "=3D>" has very little to do with typing a extra character. This feature I have seen brought up on the list time and time again, some 8 years ago being the first. Just recently more people are in favor of it I'm sure largely due to the common use and readability of JSON. I understand this discussion is for "array shorthand syntax.." but I think really people just want to define their data structures like they do in JSON, I would hate to see such a common and familiar syntax be changed just for the sake of principal/familiarity. The take away from this is simply: I think we would be butchering a very clean, precise and extremely familiar syntax if we use =3D> just to be "PHP". -Chris --=20 PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php