Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52678 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22489 invoked from network); 1 Jun 2011 14:27:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jun 2011 14:27:46 -0000 Authentication-Results: pb1.pair.com header.from=sean@seancoates.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=sean@seancoates.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain seancoates.com from 64.15.79.181 cause and error) X-PHP-List-Original-Sender: sean@seancoates.com X-Host-Fingerprint: 64.15.79.181 iconoclast.caedmon.net Received: from [64.15.79.181] ([64.15.79.181:60275] helo=iconoclast.caedmon.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7B/E3-32367-F5C46ED4 for ; Wed, 01 Jun 2011 10:27:45 -0400 Received: from localhost (localhost [127.0.0.1]) by iconoclast.caedmon.net (Postfix) with ESMTP id AEEF0784057; Wed, 1 Jun 2011 10:28:32 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at iconoclast.caedmon.net Received: from iconoclast.caedmon.net ([127.0.0.1]) by localhost (iconoclast.caedmon.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VZUnpCxXRIqb; Wed, 1 Jun 2011 10:28:30 -0400 (EDT) Received: from [192.168.145.200] (modemcable050.248-178-173.mc.videotron.ca [173.178.248.50]) by iconoclast.caedmon.net (Postfix) with ESMTPSA id 4C34E784052; Wed, 1 Jun 2011 10:28:30 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=windows-1252 In-Reply-To: Date: Wed, 1 Jun 2011 10:27:36 -0400 Cc: PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: <3C4EC449-1013-4ED6-9113-F37FAEBD0566@seancoates.com> References: To: Derick Rethans , Gustavo Lopes X-Mailer: Apple Mail (2.1084) Subject: Re: [PHP-DEV] Re: RFC: Short syntax for Arrays (redux) From: sean@seancoates.com (Sean Coates) This discussion seems to lack real-world examples=85 Derick wrote: > I'm still -1 on it. It makes absolutely unreadable code (yes, also in=20= > JavaScript with f.e. MongoDB). Here's an actual snippet from my production code (which interfaces with = ElasticSearch): http://paste.roguecoders.com/p/0747f2363c228a09e0ddd6f8ec52f2e8.html If you consider this readable, you're fare more literate than I will = ever be (-: =85 Gustavo wrote: > $a[array()]; >=20 > is much more clear than >=20 > $a[[]] Anyone who considers themselves skilled enough to participate in a = language-forming discussion like this one should also have the = prerequisite ability to determine that using an [empty] array as an = array key is a horrible idea, and they deserve whatever weirdness = ensues. IMO. S