atom feed27 messages in net.php.lists.internalsRe: [PHP-DEV] SUMMARY: Array syntax
FromSent OnAttachments
Johannes SchlüterJan 11, 2008 7:47 am 
Steph FoxJan 11, 2008 8:51 am 
PierreJan 11, 2008 9:37 am 
PierreJan 11, 2008 9:38 am 
Stanislav MalyshevJan 11, 2008 9:49 am 
Johannes SchlüterJan 11, 2008 10:24 am 
PierreJan 11, 2008 10:27 am 
Rasmus LerdorfJan 11, 2008 10:33 am 
Sam BarrowJan 11, 2008 10:47 am 
Olivier HillJan 11, 2008 11:06 am 
Stanislav MalyshevJan 11, 2008 11:07 am 
Sam BarrowJan 11, 2008 11:09 am 
Sam BarrowJan 11, 2008 11:13 am 
Steph FoxJan 11, 2008 11:17 am 
Antony DovgalJan 11, 2008 1:52 pm 
PierreJan 11, 2008 2:08 pm 
Sam BarrowJan 11, 2008 2:13 pm 
Antony DovgalJan 11, 2008 2:35 pm 
Jeff GriffithsJan 11, 2008 3:20 pm 
Antony DovgalJan 11, 2008 3:36 pm 
Gregory BeaverJan 11, 2008 4:09 pm 
Jeff GriffithsJan 11, 2008 4:54 pm 
PierreJan 11, 2008 5:02 pm 
Marcus BoergerJan 12, 2008 3:41 am 
Tomi KaistilaJan 12, 2008 6:17 am 
Kouber SaparevJan 14, 2008 7:27 am 
Richard LynchJan 15, 2008 2:12 pm 
Subject:Re: [PHP-DEV] SUMMARY: Array syntax
From:Pierre (pier@gmail.com)
Date:Jan 11, 2008 5:02:05 pm
List:net.php.lists.internals

On Jan 12, 2008 1:54 AM, Jeff Griffiths <jef@activestate.com> wrote:

if (1) { $a = [ [ ['a' => 1, 3], ($b = 3), ] ]; } else { $a = [ [ ['b' => 1, 3] ] ]; }

I agree, that's a bit nasty. =)

Like a string full of variables, arrays and objects can be unreadable :)

But I can't stop thinking about code like: [ [-1.0, 0.0, +1.0], [-2.0, 0.0 , +2.0], [-1.0, 0.0, +1.0]] and I will use this new syntax only with such cases like this one :)

(variables in string are nice, when used with moderation/caution)