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).
b) Commit square bracket array shortcut patch
keys and values are separated by double arrows.
Breaks backwards compatibility to save typing five characters. See
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.