| From | Sent On | Attachments |
|---|---|---|
| Ryusuke SEKIYAMA | Jan 10, 2008 2:07 am | |
| Marcus Boerger | Jan 10, 2008 2:18 am | |
| Saulo Vallory | Jan 10, 2008 5:36 am | |
| Hannes Magnusson | Jan 10, 2008 5:56 am | |
| Tomi Kaistila | Jan 10, 2008 6:12 am | |
| Giedrius D | Jan 10, 2008 6:18 am | |
| Sam Barrow | Jan 10, 2008 6:19 am | |
| Lukas Kahwe Smith | Jan 10, 2008 6:23 am | |
| Sam Barrow | Jan 10, 2008 6:36 am | |
| Sam Barrow | Jan 10, 2008 6:37 am | |
| Sam Barrow | Jan 10, 2008 6:39 am | |
| Hannes Magnusson | Jan 10, 2008 6:48 am | |
| Daniel Brown | Jan 10, 2008 7:03 am | |
| Andi Gutmans | Jan 10, 2008 11:35 am | |
| Andi Gutmans | Jan 10, 2008 11:40 am | |
| Pierre | Jan 10, 2008 11:46 am | |
| Derick Rethans | Jan 10, 2008 12:09 pm | |
| David Coallier | Jan 10, 2008 3:21 pm | |
| Larry Garfield | Jan 10, 2008 5:17 pm | |
| Tomi Kaistila | Jan 10, 2008 10:15 pm | |
| Ron Radko | Jan 10, 2008 10:29 pm | |
| Antony Dovgal | Jan 11, 2008 12:55 am | |
| Jani Taskinen | Jan 11, 2008 2:02 am | |
| Geoffrey Sneddon | Jan 11, 2008 6:17 am | |
| Mark Dennehy | Jan 11, 2008 6:28 am | |
| Geoffrey Sneddon | Jan 11, 2008 6:38 am | |
| Max Antonov | Jan 11, 2008 7:06 am | |
| Darius Jahandarie | Jan 19, 2008 7:26 pm | |
| taylor luk | Jan 20, 2008 9:36 pm | |
| Eric Coleman | Feb 17, 2008 10:31 am |
| Subject: | Re: [PHP-DEV] [RFC] Square brackets shortcut | |
|---|---|---|
| From: | Mark Dennehy (mark...@gmail.com) | |
| Date: | Jan 11, 2008 6:28:28 am | |
| List: | net.php.lists.internals | |
On Jan 11, 2008 2:17 PM, Geoffrey Sneddon <fool...@googlemail.com> wrote:
I don't think tiredness to type an extra five characters should be an excuse to change the syntax.
No, but clarity of expression is a valid reason to do so.
a) Commit square bracket array shortcut patch keys and values are separated by colons.
Breaks from PHP's => for no apparent reason (one character too many character this time?), which is just confusing (that's an implicit -1).
Agreed;
b) Commit square bracket array shortcut patch keys and values are separated by double arrows.
Breaks backwards compatibility to save typing five characters. See above. -1.
It doesn't break backwards compatibility; the new syntax is an alias, not a replacement. The older array() syntax will still be in place, if I've understood the earlier posts correctly.
-- Mark Dennehy





