Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52706 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16656 invoked from network); 1 Jun 2011 21:22:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jun 2011 21:22:44 -0000 Authentication-Results: pb1.pair.com header.from=chrisstocktonaz@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=chrisstocktonaz@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: chrisstocktonaz@gmail.com X-Host-Fingerprint: 209.85.160.42 mail-pw0-f42.google.com Received: from [209.85.160.42] ([209.85.160.42:44398] helo=mail-pw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D6/62-32367-3ADA6ED4 for ; Wed, 01 Jun 2011 17:22:44 -0400 Received: by pwj3 with SMTP id 3so231389pwj.29 for ; Wed, 01 Jun 2011 14:22:41 -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=AzgOFco+DnQEPet5SXxNQHg1AQrPjWQtOF1z/1SDmM4=; b=ffEb4PE4FmPNO0Hnd9lcPYQZPsdSCpjYvMN9yMh+Spdw468pxvrteGRmiH86k22Z8j kEAS3f750DzJZKON72DhGJgBF8rsQ53aRRdRE5OboS9z2ZUKEaIs9oYjspvO7VkrZLV4 d9B6uo4jUXnhNoCeS+637sXsgUBd5SZZ8/cbA= 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=wkRnLw2iipsMNUs9VD1xX4bJX8YVe6GdpZcKKTtosdyA1lyd3kdNenLIptDQOEm+3B vnEC10H2NzKqfGC0mM8jU2l+YVaykQJGRdL54bK5aGfl0T6VfAEwmu4Q544/O4z8YCZ4 fuOxdVgJoXpq7C/OJcKdgBPYirzobXLuTN3+I= MIME-Version: 1.0 Received: by 10.68.34.38 with SMTP id w6mr3560065pbi.26.1306963361046; Wed, 01 Jun 2011 14:22:41 -0700 (PDT) Received: by 10.68.63.162 with HTTP; Wed, 1 Jun 2011 14:22:40 -0700 (PDT) In-Reply-To: References: <4DE5368A.6050603@moonspot.net> <8BEEEE49-8DA3-4634-BF9C-120F7A15B613@roshambo.org> Date: Wed, 1 Jun 2011 14:22:40 -0700 Message-ID: To: Michael Shadle Cc: Pierre Joye , PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] RFC: Short syntax for Arrays (redux) From: chrisstocktonaz@gmail.com (Chris Stockton) 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 "=>" 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 => just to be "PHP". -Chris