atom feed111 messages in net.php.lists.internalsSyntactic improvement to array
FromSent OnAttachments
Andi GutmansFeb 3, 2007 11:24 pm 
Marcus BoergerFeb 4, 2007 2:09 am 
phpxcacheFeb 4, 2007 3:18 am 
PierreFeb 4, 2007 3:24 am 
Edin KadribasicFeb 4, 2007 5:00 am 
Johannes SchlüterFeb 4, 2007 5:17 am 
Nico HaaseFeb 4, 2007 5:43 am 
Hannes MagnussonFeb 4, 2007 5:53 am 
Christian SchneiderFeb 4, 2007 6:23 am 
Hannes MagnussonFeb 4, 2007 6:29 am 
Christian SchneiderFeb 4, 2007 6:57 am 
PierreFeb 4, 2007 7:23 am 
Andi GutmansFeb 4, 2007 8:15 am 
Andi GutmansFeb 4, 2007 8:16 am 
Lukas Kahwe SmithFeb 4, 2007 8:29 am 
Rasmus LerdorfFeb 4, 2007 8:36 am 
Zeev SuraskiFeb 4, 2007 8:58 am 
Ilia AlshanetskyFeb 4, 2007 9:27 am 
Andi GutmansFeb 4, 2007 9:39 am 
Ilia AlshanetskyFeb 4, 2007 9:48 am 
PierreFeb 4, 2007 10:13 am 
StephFeb 4, 2007 10:16 am 
StephFeb 4, 2007 10:17 am 
Lukas Kahwe SmithFeb 4, 2007 10:29 am 
Mike RobinsonFeb 4, 2007 10:30 am 
Ilia AlshanetskyFeb 4, 2007 10:33 am 
Lukas Kahwe SmithFeb 4, 2007 10:37 am 
Edin KadribasicFeb 4, 2007 10:37 am 
PierreFeb 4, 2007 10:40 am 
Derick RethansFeb 4, 2007 10:56 am 
Derick RethansFeb 4, 2007 11:00 am 
Marcus BoergerFeb 4, 2007 11:06 am 
Stanislav MalyshevFeb 4, 2007 12:18 pm 
StephFeb 4, 2007 12:29 pm 
Stefan WalkFeb 4, 2007 12:45 pm 
StephFeb 4, 2007 12:52 pm 
Zeev SuraskiFeb 4, 2007 1:21 pm 
PierreFeb 4, 2007 1:26 pm 
Zeev SuraskiFeb 4, 2007 1:40 pm 
PierreFeb 4, 2007 1:50 pm 
Zeev SuraskiFeb 4, 2007 2:02 pm 
PierreFeb 4, 2007 2:10 pm 
Robert CummingsFeb 4, 2007 3:11 pm 
Sara GolemonFeb 4, 2007 3:25 pm 
Richard LynchFeb 4, 2007 8:20 pm 
Richard LynchFeb 4, 2007 8:22 pm 
Richard LynchFeb 4, 2007 8:26 pm 
Richard LynchFeb 4, 2007 8:48 pm 
Richard LynchFeb 4, 2007 8:52 pm 
Richard LynchFeb 4, 2007 8:54 pm 
Gregory BeaverFeb 4, 2007 9:13 pm 
60 later messages
Subject:Syntactic improvement to array
From:Andi Gutmans (an@zend.com)
Date:Feb 3, 2007 11:24:59 pm
List:net.php.lists.internals

Hi,

I thought I may have brought this up a long time ago but couldn't find anything
in the archives. For a long time already I've been thinking about possibly adding a new syntax
for array(...) which would be shorter. I'd suggest [...]. While I am usually not in favor of having more than one way to do things,
I think it'd look much more elegant especially (but not only) for nested arrays.

So what I'm thinking of is: array(1, 2, 3) == [1, 2, 3] array(1, 2, array("foo", "bar")) == [1, 2, ["foo", "bar"]] array("key" => 1, "key2" => 2) == ["key" => 1, "key2" => 2]

$arr = [1, 2, 3] vs. $arr = array(1, 2, 3)

Well enough examples given :) I think it's not worth doing unless there's overwhelming support as it's not
desperately needed. But I'd be interested to hear people's thoughts. It seems implementation shouldn't be an issue but I'd have to
dive a bit deeper.

Andi