Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27858 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20430 invoked by uid 1010); 6 Feb 2007 15:33:03 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 20415 invoked from network); 6 Feb 2007 15:33:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Feb 2007 15:33:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=t.andreatta@troppoavanti.it; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=t.andreatta@troppoavanti.it; sender-id=unknown Received-SPF: error (pb1.pair.com: domain troppoavanti.it from 82.188.186.202 cause and error) X-PHP-List-Original-Sender: t.andreatta@troppoavanti.it X-Host-Fingerprint: 82.188.186.202 host202-186-static.188-82-b.business.telecomitalia.it Linux 2.5 (sometimes 2.4) (4) Received: from [82.188.186.202] ([82.188.186.202:43380] helo=wavegroup.it) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4E/10-18465-9AF98C54 for ; Tue, 06 Feb 2007 10:33:00 -0500 Received: (qmail 1730 invoked from network); 6 Feb 2007 15:32:53 -0000 Received: (simscan 1.2.0 ppid 1723 pid 1724 t 0.0276s scanners: attach: 1.2.0 clamav: 0.88.2/m:39/d:1628); 06 Feb 0107 15:32:53 -0000 Received: from unknown (HELO [10.150.13.55]) ([10.150.13.55]) (envelope-sender ) by chimera.wavegroup.it (qmail-ldap-1.03) with SMTP for ; 6 Feb 2007 15:32:53 -0000 Message-ID: <45C89EE2.6090800@troppoavanti.it> Date: Tue, 06 Feb 2007 16:29:38 +0100 Organization: Wave Technologies S.r.l. User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: internals@lists.php.net 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> <51602.216.230.84.67.1170718426.squirrel@www.l-i-e.com> In-Reply-To: <51602.216.230.84.67.1170718426.squirrel@www.l-i-e.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Syntactic improvement to array From: t.andreatta@troppoavanti.it (Tullio Andreatta ML) >> 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] Ok. So I propose more "searcheable" operators: let($i, 1) === $i = 1 let($d, add($a, $b, $c)) === $d = $a + $b + $c call(foo, $arg1, $arg2) === foo($arg1, $arg2) :-) 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) -- Tullio Andreatta Disclaimer: "Please treat this email message in a reasonable way, or we might get angry" ( http://www.goldmark.org/jeff/stupid-disclaimers )