Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34683 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83818 invoked by uid 1010); 11 Jan 2008 08:31:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 83803 invoked from network); 11 Jan 2008 08:31:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jan 2008 08:31:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.94.239.7 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.94.239.7 mail.jdi-ict.nl Linux 2.6 Received: from [82.94.239.7] ([82.94.239.7:33133] helo=mail.jdi-ict.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 17/51-51656-87927874 for ; Fri, 11 Jan 2008 03:31:54 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id m0B8Vm46025352; Fri, 11 Jan 2008 09:31:49 +0100 Date: Fri, 11 Jan 2008 09:31:46 +0100 (CET) X-X-Sender: derick@kossu.ez.no To: Andi Gutmans cc: internals@lists.php.net In-Reply-To: <698DE66518E7CA45812BD18E807866CE011C7C7E@us-ex1.zend.net> Message-ID: References: <698DE66518E7CA45812BD18E807866CE011C7C7E@us-ex1.zend.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=UTF-8 Subject: Re: [PHP-DEV] Array syntax [] From: derick@php.net (Derick Rethans) On Thu, 10 Jan 2008, Andi Gutmans wrote: > I think almost everyone here agreed it'd benefit them and maybe the ones > who don't would go through the same process I went through once they get > used to it J I don't know about that, I for once find it silly to even try to argue that [] is a good idea, but at the same time are fully against scalar typehints. It is argued that [] is good for readability, although looking up [ or ] anywhere will not produce results. Hence, it is more cryptic to use, harder to find information on - and it doesn't provide any *new* functionality. array() has been working fine for more than 10 years. On the other hand, it is argued that scalar typehints are confusing for new users. I don't see how because it is much easier to provide search-index information for on our website, and they actually provide new functionality as they make it users for users of libraries to see instantly whether they use that library correctly. regards, Derick -- Derick Rethans http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org