Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27839 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84431 invoked by uid 1010); 5 Feb 2007 23:46:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 84416 invoked from network); 5 Feb 2007 23:46:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2007 23:46:02 -0000 Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain l-i-e.com from 67.139.134.202 cause and error) X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [67.139.134.202] ([67.139.134.202:3899] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D6/26-43531-9B1C7C54 for ; Mon, 05 Feb 2007 18:46:02 -0500 Received: (qmail 37818 invoked by uid 98); 5 Feb 2007 23:46:03 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-1.25 (clamdscan: 0.88.7/2523. Clear:RC:1(127.0.0.1):. Processed in 0.230807 secs); 05 Feb 2007 23:46:03 -0000 X-Qmail-Scanner-Mail-From: ceo@l-i-e.com via o2.hostbaby.com X-Qmail-Scanner: 1.25 (Clear:RC:1(127.0.0.1):. Processed in 0.230807 secs) Received: from localhost (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 5 Feb 2007 23:46:03 -0000 Received: from 216.230.84.67 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Mon, 5 Feb 2007 17:46:03 -0600 (CST) Message-ID: <53168.216.230.84.67.1170719163.squirrel@www.l-i-e.com> In-Reply-To: <45C771CF.3020702@zend.com> References: <011701c7482d$a39f6910$6500a8c0@zend.2k> <45C5EC63.7030605@cschneid.com> <1902.67.184.122.32.1170651145.squirrel@www.l-i-e.com> <45C771CF.3020702@zend.com> Date: Mon, 5 Feb 2007 17:46:03 -0600 (CST) To: "Stanislav Malyshev" Cc: internals@lists.php.net Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] Re: Syntactic improvement to array From: ceo@l-i-e.com ("Richard Lynch") On Mon, February 5, 2007 12:05 pm, Stanislav Malyshev wrote: >> So now we have an invisible operator with a magical symbol '[' which >> *sometimes* means create an array, but *sometimes* means to >> de-construct an array into individual variables? > > Yep. We also have an invisible magical operator (), which sometimes > means function definition, sometimes means expression grouping, > sometimes means delimiter, sometimes means function call and sometimes > means regular expression grouping. How do we manage? ;) How you manage is that a zillion newbies use: include("foo.inc"); echo("foo.inc"); and they don't even realize that the () doesn't mean what they think it means, and it "just works" because it's a no-op. *THAT* is harder to explain than just about anything in PHP syntax. How many newbies will be trying: array[1, 2, 3]; and left scratching their heads when it doesn't work? -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?