| 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: | Max Antonov (idl...@instanceof.ru) | |
| Date: | Jan 11, 2008 7:06:29 am | |
| List: | net.php.lists.internals | |
a) Commit square bracket array shortcut patch keys and values are separated by colons. ( http://www.opendogs.org/pub/php-5.3dev-080109-sbar.patch ) e.g. $a = [1, 2, 3]; $b = ['foo': 'orange', 'bar': 'apple', 'baz': 'lemon'];
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. ( http://www.opendogs.org/pub/php-5.3dev-080109-sbar2.patch ) e.g. $a = [1, 2, 3]; $b = ['foo' => 'orange', 'bar' => 'apple', 'baz' => 'lemon'];
Breaks backwards compatibility to save typing five characters. See above. -1.
c) Reject and keep using `array()'. e.g. $a = array(1, 2, 3); $b = array('foo' => 'orange', 'bar' => 'apple', 'baz' => 'lemon');
For all the above reasons, +1.
In my post i not write about variant "a)" +1 too.
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php





