atom feed30 messages in net.php.lists.internalsRe: [PHP-DEV] [RFC] Square brackets s...
FromSent OnAttachments
Ryusuke SEKIYAMAJan 10, 2008 2:07 am 
Marcus BoergerJan 10, 2008 2:18 am 
Saulo ValloryJan 10, 2008 5:36 am 
Hannes MagnussonJan 10, 2008 5:56 am 
Tomi KaistilaJan 10, 2008 6:12 am 
Giedrius DJan 10, 2008 6:18 am 
Sam BarrowJan 10, 2008 6:19 am 
Lukas Kahwe SmithJan 10, 2008 6:23 am 
Sam BarrowJan 10, 2008 6:36 am 
Sam BarrowJan 10, 2008 6:37 am 
Sam BarrowJan 10, 2008 6:39 am 
Hannes MagnussonJan 10, 2008 6:48 am 
Daniel BrownJan 10, 2008 7:03 am 
Andi GutmansJan 10, 2008 11:35 am 
Andi GutmansJan 10, 2008 11:40 am 
PierreJan 10, 2008 11:46 am 
Derick RethansJan 10, 2008 12:09 pm 
David CoallierJan 10, 2008 3:21 pm 
Larry GarfieldJan 10, 2008 5:17 pm 
Tomi KaistilaJan 10, 2008 10:15 pm 
Ron RadkoJan 10, 2008 10:29 pm 
Antony DovgalJan 11, 2008 12:55 am 
Jani TaskinenJan 11, 2008 2:02 am 
Geoffrey SneddonJan 11, 2008 6:17 am 
Mark DennehyJan 11, 2008 6:28 am 
Geoffrey SneddonJan 11, 2008 6:38 am 
Max AntonovJan 11, 2008 7:06 am 
Darius JahandarieJan 19, 2008 7:26 pm 
taylor lukJan 20, 2008 9:36 pm 
Eric ColemanFeb 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.