Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27842 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3545 invoked by uid 1010); 6 Feb 2007 00:13:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 3530 invoked from network); 6 Feb 2007 00:13:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Feb 2007 00:13:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=robert@interjinn.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=robert@interjinn.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain interjinn.com from 66.11.173.122 cause and error) X-PHP-List-Original-Sender: robert@interjinn.com X-Host-Fingerprint: 66.11.173.122 unknown Linux 2.5 (sometimes 2.4) (4) Received: from [66.11.173.122] ([66.11.173.122:48057] helo=blobule.interjinn.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FD/B9-43531-A38C7C54 for ; Mon, 05 Feb 2007 19:13:47 -0500 Received: by blobule.interjinn.com (Postfix, from userid 2000) id 53D585ACF7D; Mon, 5 Feb 2007 19:13:47 -0500 (EST) To: ceo@l-i-e.com Cc: Stanislav Malyshev , internals@lists.php.net In-Reply-To: <53168.216.230.84.67.1170719163.squirrel@www.l-i-e.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> <53168.216.230.84.67.1170719163.squirrel@www.l-i-e.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: InterJinn Date: Mon, 05 Feb 2007 19:13:46 -0500 Message-ID: <1170720827.6612.83.camel@blobule> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Subject: Re: [PHP-DEV] Re: Syntactic improvement to array From: robert@interjinn.com (Robert Cummings) On Mon, 2007-02-05 at 17:46 -0600, Richard Lynch wrote: > > 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. It's not a no-op, I'm sure it actually applies parenthesis precedence on the expression "foo.inc" :) Personally, I use the parenthesis when using include and require because I prefer it that way... though I don't doubt some newbies think it's a function *heh*. Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'