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 want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



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.com/internals@lists.php.net/msg03896.html
  
  
  
   Andi's brain evolves 2007:
   http://marc.info/?l=php-internalsm=117057393530217w=2
  
  
  
   And today I'm still +1.
  
  
  
   I really think by looking at some of the examples I worked through with
   my original posting in February and some of the recent comments the
   majority of people find [] more readable. It's cleaner, shorter and
   comes natural to most people. It's not about saving 5 characters as I
   type quickly, I really feel it's more readable and natural. We're kind
   of odd as a language in that sense i.e. array(...)
  
  
  
   I think almost everyone here agreed it'd benefit them and maybe the ones
   who don't would go through the same process I went through once they get
   used to it J
  
  
  
   Andi
  
  
  
  
 
  --
  PHP Internals - PHP Runtime Development Mailing List
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[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-internalsm=117057393530217w=2



And today I'm still +1.



I really think by looking at some of the examples I worked through with
my original posting in February and some of the recent comments the
majority of people find [] more readable. It's cleaner, shorter and
comes natural to most people. It's not about saving 5 characters as I
type quickly, I really feel it's more readable and natural. We're kind
of odd as a language in that sense i.e. array(...)



I think almost everyone here agreed it'd benefit them and maybe the ones
who don't would go through the same process I went through once they get
used to it J



Andi






--
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:
  http://marc.info/?l=php-internalsm=117057393530217w=2
 
 
 
  And today I'm still +1.
 
 
 
  I really think by looking at some of the examples I worked through with
  my original posting in February and some of the recent comments the
  majority of people find [] more readable. It's cleaner, shorter and
  comes natural to most people. It's not about saving 5 characters as I
  type quickly, I really feel it's more readable and natural. We're kind
  of odd as a language in that sense i.e. array(...)
 
 
 
  I think almost everyone here agreed it'd benefit them and maybe the ones
  who don't would go through the same process I went through once they get
  used to it J
 
 
 
  Andi
 
 
 
 

 --
 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 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-internalsm=117057393530217w=2

 


And today I'm still +1.

 


I really think by looking at some of the examples I worked through with
my original posting in February and some of the recent comments the
majority of people find [] more readable. It's cleaner, shorter and
comes natural to most people. It's not about saving 5 characters as I
type quickly, I really feel it's more readable and natural. We're kind
of odd as a language in that sense i.e. array(...)

 


I think almost everyone here agreed it'd benefit them and maybe the ones
who don't would go through the same process I went through once they get
used to it J

 


Andi

 





--
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 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 like
   foo([1, $a[2]]);
I might even construct worse examples, but in the end you'll have to
take a quite close look to see what's going on, whereas the array()
syntax directly tells you hey, here's an array, it are just 5 letters,
so typing it isn't too hard (especially when using an editor with
completion) ...

Yes, it's nice in short code, but I think it makes it way harder to read
other people's code - and that's already hard enough. (I, myself, would,
of course, ( ;-) ) use it right but I tend to read more code than I
write)

johannes

-- 
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 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 difference in?
foo(['a'=2,'b'=['x'=5,'c'=[1,4,2]],'n'=$bar[4]]);

I think - it will be good readable in large projects too.

Please look to code of ExtJS JavaScript Library - this syntax native in 
javascript and it very usable


(excuse me for my English)

--
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 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 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 difference in?
 foo(['a'=2,'b'=['x'=5,'c'=[1,4,2]],'n'=$bar[4]]);

 I think - it will be good readable in large projects too.

 Please look to code of ExtJS JavaScript Library - this syntax native in
 javascript and it very usable

 (excuse me for my English)


 --
 PHP Internals - PHP Runtime Development Mailing List
 To unsubscribe, visit: http://www.php.net/unsub.php





-- 
Pierre
http://blog.thepimp.net | http://www.libgd.org

--
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 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, since we already
have a syntax, which has worked for a decade. Having two different
syntaxes, for the exact same thing, isn't that great an idea. All
IMHO, of course.
-1 for those counting.

-- 
troels
(Which is in fact pronounced trolls)

-- 
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 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 Phone: +55 34 9144 1472
JMCodex (http://www.jmcodex.com)
skype: marcelocrosara


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 Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



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



[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



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
probably be {'foo' = 1, 'bar' = 2}.
I don't think the added noise is worth it though, since we already
have a syntax, which has worked for a decade. Having two different
syntaxes, for the exact same thing, isn't that great an idea. All
IMHO, of course.
-1 for those counting.

--
troels
(Which is in fact pronounced trolls)

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



--
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-internalsm=117057393530217w=2

 

And today I'm still +1.

 

I really think by looking at some of the examples I worked through with
my original posting in February and some of the recent comments the
majority of people find [] more readable. It's cleaner, shorter and
comes natural to most people. It's not about saving 5 characters as I
type quickly, I really feel it's more readable and natural. We're kind
of odd as a language in that sense i.e. array(...)

 

I think almost everyone here agreed it'd benefit them and maybe the ones
who don't would go through the same process I went through once they get
used to it J

 

Andi

 

-- 
- Peter Brodersen

--
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 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