From | Sent On | Attachments |
---|---|---|
40 earlier messages | ||
Marco Tabini | Nov 5, 2003 9:18 am | |
Romans Malinovskis | Nov 5, 2003 9:19 am | |
Andi Gutmans | Nov 5, 2003 9:20 am | |
Steph | Nov 5, 2003 9:25 am | |
Andrey Hristov | Nov 5, 2003 9:25 am | |
Ilia Alshanetsky | Nov 5, 2003 9:25 am | |
Marco Tabini | Nov 5, 2003 9:30 am | |
Derick Rethans | Nov 5, 2003 9:33 am | |
George Schlossnagle | Nov 5, 2003 9:36 am | |
Rasmus Lerdorf | Nov 5, 2003 9:45 am | |
Edin Kadribasic | Nov 5, 2003 9:45 am | |
Romans Malinovskis | Nov 5, 2003 9:48 am | |
Moriyoshi Koizumi | Nov 5, 2003 9:51 am | |
Jani Taskinen | Nov 5, 2003 9:54 am | |
Jaap van Ganswijk | Nov 5, 2003 10:07 am | |
Michael Walter | Nov 5, 2003 10:12 am | |
Cesare D'Amico | Nov 5, 2003 10:22 am | |
Marco Tabini | Nov 5, 2003 10:29 am | |
Michael Walter | Nov 5, 2003 10:30 am | |
Michael Walter | Nov 5, 2003 10:36 am | |
George Schlossnagle | Nov 5, 2003 10:37 am | |
Andrei Zmievski | Nov 5, 2003 10:39 am | |
George Schlossnagle | Nov 5, 2003 10:56 am | |
David Enderson | Nov 5, 2003 11:03 am | |
Marco Tabini | Nov 5, 2003 11:11 am | |
Shane Caraveo | Nov 5, 2003 11:13 am | |
Michael Walter | Nov 5, 2003 12:26 pm | |
Greg MacLellan | Nov 5, 2003 12:40 pm | |
Robert Cummings | Nov 5, 2003 1:08 pm | |
David Enderson | Nov 5, 2003 1:20 pm | |
Sara Golemon | Nov 5, 2003 2:41 pm | |
George Schlossnagle | Nov 5, 2003 3:00 pm | |
Wez Furlong | Nov 5, 2003 4:06 pm | |
Christian Schneider | Nov 5, 2003 5:07 pm | |
Ard Biesheuvel | Nov 5, 2003 5:27 pm | |
Christian Schneider | Nov 5, 2003 5:50 pm | |
Andi Gutmans | Nov 6, 2003 12:03 am | |
Stig S. Bakken | Nov 6, 2003 12:58 am | |
Kouber Saparev | Nov 6, 2003 1:25 am | |
Mike Robinson | Nov 6, 2003 3:31 am | |
Andi Gutmans | Nov 6, 2003 4:04 am | |
Ford, Mike [LSS] | Nov 6, 2003 4:09 am | |
Alexey Trunyov | Nov 6, 2003 4:16 am | |
Ford, Mike [LSS] | Nov 6, 2003 4:28 am | |
Sascha Schumann | Nov 6, 2003 4:30 am | |
Andi Gutmans | Nov 6, 2003 5:28 am | |
Sascha Schumann | Nov 6, 2003 5:46 am | |
Stig S. Bakken | Nov 6, 2003 6:33 am |
Subject: | Re: [PHP-DEV] Proposal: Array syntax | ![]() |
---|---|---|
From: | Marco Tabini (mar...@tabini.ca) | |
Date: | Nov 5, 2003 11:11:00 am | |
List: | net.php.lists.internals |
George Schlossnagle wrote:
On Nov 5, 2003, at 1:29 PM, Marco Tabini wrote:
$a = [1,2,$b[11]] is semantically inconsistent.
How so? Is
I think I've already explained why.
foo(array(1,2));
semantically inconsistent? On one hand () is used with a language construct (array()), whereas in the other context it indicates arguments to a function. I think that is what he meant by 'grouping' and 'application'.
Actually, I think it meant something else. In any case, semantically you can still think of array() as a function (until you throw in key declarations, of course ;) )
Similar tokens have different syntactical meaning all over the language. Compare '<<' and '<<<'. To me that is no diffent that <variable>[] and [].
Again, that's not a good reason to introduce more.
Mt.
George (still -1, but because it makes for unmaintainable code, not because it's hard to read)