Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27835 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77945 invoked by uid 1010); 5 Feb 2007 23:33:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 77930 invoked from network); 5 Feb 2007 23:33:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2007 23:33:45 -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:2945] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/25-43531-8DEB7C54 for ; Mon, 05 Feb 2007 18:33:45 -0500 Received: (qmail 29270 invoked by uid 98); 5 Feb 2007 23:33:46 -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.072955 secs); 05 Feb 2007 23:33:46 -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.072955 secs) Received: from localhost (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 5 Feb 2007 23:33:46 -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:33:46 -0600 (CST) Message-ID: <51602.216.230.84.67.1170718426.squirrel@www.l-i-e.com> In-Reply-To: <45C7766D.8050909@zend.com> References: <011701c7482d$a39f6910$6500a8c0@zend.2k> <28139bc0702040319p6a5cffdbi2e5999d7ebf48662@mail.gmail.com> <45C6DCF5.1000102@dealnews.com> <45C7710D.5030205@zend.com> <45C7747B.3070603@dealnews.com> <45C7766D.8050909@zend.com> Date: Mon, 5 Feb 2007 17:33:46 -0600 (CST) To: "Stanislav Malyshev" Cc: "Brian Moon" , 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] Syntactic improvement to array From: ceo@l-i-e.com ("Richard Lynch") On Mon, February 5, 2007 12:24 pm, Stanislav Malyshev wrote: > >> When a new PHP user asks you "What is an array?" you will >> understand. > > If someone is not familiar with the concept of the array at all, it > doesn't matter if it's written as array(1,2,3) or [1,2,3]. That's not > what we are discussing right now. > >> Its clear that not all the folks on internals have actually spoken >> to >> the masses of users whose first language is PHP. People don't start > > As opposed to you who did, I presume. So, judging from your > experience, > how it is different? How explaining array written as [] so much harder > that explaining array written as ()? What exactly constitutes the > problem? Here's the difference: You can Google for 'array' and learn a lot. If you try to Google for [] you don't learn squat. Try it and see. So our 'newbie' at least has a good chance of figuring out array(1, 2, 3) on their own. They've got must worse odds of figuring out [1,2,3] -- 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?