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 characters 
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:chrisstockto...@gmail.com] 
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 <mike...@gmail.com> wrote:
> On Wed, Jun 1, 2011 at 1:01 PM, Pierre Joye <pierre....@gmail.com> 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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to