Re: Syntactic improvement to array

From: Date: Tue, 06 Feb 2007 15:47:57 +0000
Subject: Re: Syntactic improvement to array
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-27859@lists.php.net to get a copy of this message
Hi.
Our 'newbie' at least has a good chance of figuring out
   $a = [1,2,3]          vs.        $a = array(1,2,3)
is different than $a = foobar(1,2,3)
I am probably out of my depth here...but I actually find the argument about wether to introduce this syntax or not, very entertaining...it's a classic example of human individuality. great really;) The argument against introducing the new syntax, that says, that it's less searchable,...well...why not improve the search functionality of the php-documentation? it would help with all the other operators (and magic functions and language constructs) if the search-function would try to match the search-input against operators and constructs, no? I know that google won't show anything worthwhile when queried about "php []" or the like...but...the php-documentation is very good and maybe we could improve access to it...a newbie could then query all he wants in the php-doc page. No good? Lars

« previous php.internals (#27859) next »