[PHP-DEV] Re: Array syntax []

2008-01-11 Thread Max Antonov
I use PHP since version 5.0 release I'd like use this syntax $a = [ 2,6,9 ]; $b = ['a'=>1 , 'v'=>'string']; foo(['bar'=>2, 'test'=null]); Andi Gutmans пишет: Andi 2003: http://www.mail-archive.com/internals@lists.php.net/msg03896.html Andi's brain evolves 2007: http://marc.info/?l=php-inter

[PHP-DEV] Re: Array syntax []

2008-01-11 Thread Johannes Schlüter
Hi, On Fri, 2008-01-11 at 12:40 +0300, Max Antonov wrote: > I use PHP since version 5.0 release > I'd like use this syntax > $a = [ 2,6,9 ]; > $b = ['a'=>1 , 'v'=>'string']; > foo(['bar'=>2, 'test'=null]); The last line is exactly why I won't like such a syntax. Just consider the a bit worse call

[PHP-DEV] Re: Array syntax []

2008-01-11 Thread Max Antonov
Johannes Schlüter writes: The last line is exactly why I won't like such a syntax. Just consider the a bit worse call like foo([1, $a[2]]); I might even construct worse examples, is this a good-readable code? foo (array('a'=2,'b'=>array('x'=>5,'c'=>array(1,4,2)),'n'=>$bar[4])); what diffe

[PHP-DEV] Re: Array syntax []

2008-01-11 Thread Peter Brodersen
+1 (sorry for the first post) -- - Peter Brodersen -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: Array syntax []

2008-01-11 Thread Peter Brodersen
On Thu, 10 Jan 2008 15:51:51 -0800, in php.internals [EMAIL PROTECTED] ("Andi Gutmans") wrote: >Andi 2003: >http://www.mail-archive.com/internals@lists.php.net/msg03896.html > > > >Andi's brain evolves 2007: >http://marc.info/?l=php-internals&m=117057393530217&w=2 > > > >And today I'm still +1.

[PHP-DEV] Re: Array syntax []

2008-01-13 Thread Adler Medrado
+1 ""Andi Gutmans"" <[EMAIL PROTECTED]> escreveu na notícia da mensagem:[EMAIL PROTECTED] Andi 2003: http://www.mail-archive.com/internals@lists.php.net/msg03896.html Andi's brain evolves 2007: http://marc.info/?l=php-internals&m=117057393530217&w=2 And today I'm still +1. I really thi

Re: [PHP-DEV] Re: Array syntax []

2008-01-11 Thread Pierre
Hi, Guys, there is really no point to argue about aesthetic or taste. Make your point by using +1/-1 and that's it. As said, the trolls quota has been used already. Thanks for my bandwidth, On Jan 11, 2008 12:12 PM, Max Antonov <[EMAIL PROTECTED]> wrote: > Johannes Schlüter writes: > > > > > The

Re: [PHP-DEV] Re: Array syntax []

2008-01-11 Thread troels knak-nielsen
One problem, I have with this proposal is, that it isn't much like javascript anyway. In javascript, there is a distinction between array and hashmap, with different syntaxes. If anything, the syntax should probably be {'foo' => 1, 'bar' => 2}. I don't think the added noise is worth it though, sinc

Re: [PHP-DEV] Re: Array syntax []

2008-01-11 Thread Mikko Koppanen
-1 -- Mikko Koppanen

Re: [PHP-DEV] Re: Array syntax []

2008-01-11 Thread Marcelo Araujo
-1 PHP is not Python. --Marcelo On Jan 11, 2008 9:29 AM, Edin Kadribasic <[EMAIL PROTECTED]> wrote: > +1 on option b. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Marcelo Araujo Founder & Software Architect Cell Pho

Re: [PHP-DEV] Re: Array syntax []

2008-01-11 Thread Edin Kadribasic
+1 on option b. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Array syntax []

2008-01-11 Thread Giedrius D
On Jan 11, 2008 1:19 PM, Pierre <[EMAIL PROTECTED]> wrote: > Hi, > > Guys, there is really no point to argue about aesthetic or taste. Make > your point by using +1/-1 and that's it. As said, the trolls quota has > been used already. > +1 FWIW :-) -- Giedrius -- PHP Internals - PHP Runtime Deve

Re: [PHP-DEV] Re: Array syntax []

2008-01-11 Thread David Soria Parra
-1 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Array syntax []

2008-01-11 Thread Daevel
+1 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Array syntax []

2008-01-11 Thread Elizabeth M Smith
+1 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Array syntax []

2008-01-11 Thread Chuck Hagenbuch
Guys, there is really no point to argue about aesthetic or taste. Make your point by using +1/-1 and that's it. As said, the trolls quota has been used already. +1 -chuck -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Array syntax []

2008-01-11 Thread Arnold Daniels
-1 On Jan 11, 2008, at 12:55 PM, "troels knak-nielsen" <[EMAIL PROTECTED]> wrote: One problem, I have with this proposal is, that it isn't much like javascript anyway. In javascript, there is a distinction between array and hashmap, with different syntaxes. If anything, the syntax should pro

Re: [PHP-DEV] Re: Array syntax []

2008-01-11 Thread Hannes Magnusson
-1 -Hannes -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Array syntax []

2008-01-11 Thread Tomi Kaistila
-1 Tomi Kaistila PHP Developer -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Array syntax []

2008-01-11 Thread Matt Evans
+1 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Array syntax []

2008-01-13 Thread Lokrain
-1 On Jan 13, 2008 11:25 PM, Adler Medrado <[EMAIL PROTECTED]> wrote: > +1 > > ""Andi Gutmans"" <[EMAIL PROTECTED]> escreveu na notícia da > mensagem:[EMAIL PROTECTED] > > Andi 2003: > > http://www.mail-archive.com/internals@lists.php.net/msg03896.html > > > > > > > > Andi's brain evolves 2007: >

Re: [PHP-DEV] Re: Array syntax []

2008-01-14 Thread Reed Underwood
-1 On Jan 14, 2008 1:38 AM, Lokrain <[EMAIL PROTECTED]> wrote: > -1 > > > On Jan 13, 2008 11:25 PM, Adler Medrado <[EMAIL PROTECTED]> wrote: > > > +1 > > > > ""Andi Gutmans"" <[EMAIL PROTECTED]> escreveu na notícia da > > mensagem:[EMAIL PROTECTED] > > > Andi 2003: > > > http://www.mail-archive.co

Re: [PHP-DEV] Re: Array syntax []

2008-01-15 Thread Richard Lynch
-1 Another way of doing something already simple does not improve the language, imho, only degrades maintenance and documentation. If you have a time machine and can go back and make Rasmus do it this way from the beginning, fine, but not now. -- Some people have a "gift" link here. Know what I