atom feed27 messages in net.php.lists.internalsRe: [PHP-DEV] SUMMARY: Array syntax
FromSent OnAttachments
Johannes SchlüterJan 11, 2008 7:46 am 
Steph FoxJan 11, 2008 8:50 am 
PierreJan 11, 2008 9:37 am 
PierreJan 11, 2008 9:37 am 
Stanislav MalyshevJan 11, 2008 9:49 am 
Johannes SchlüterJan 11, 2008 10:23 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:08 am 
Sam BarrowJan 11, 2008 11:12 am 
Steph FoxJan 11, 2008 11:17 am 
Antony DovgalJan 11, 2008 1:51 pm 
PierreJan 11, 2008 2:08 pm 
Sam BarrowJan 11, 2008 2:12 pm 
Antony DovgalJan 11, 2008 2:35 pm 
Jeff GriffithsJan 11, 2008 3:19 pm 
Antony DovgalJan 11, 2008 3:36 pm 
Gregory BeaverJan 11, 2008 4:08 pm 
Jeff GriffithsJan 11, 2008 4:53 pm 
PierreJan 11, 2008 5:01 pm 
Marcus BoergerJan 12, 2008 3:40 am 
Tomi KaistilaJan 12, 2008 6:16 am 
Kouber SaparevJan 14, 2008 7:26 am 
Richard LynchJan 15, 2008 2:11 pm 
Subject:Re: [PHP-DEV] SUMMARY: Array syntax
From:Pierre (pier@gmail.com)
Date:Jan 11, 2008 5:01:42 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)