Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20140 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27647 invoked by uid 1010); 18 Nov 2005 11:48:19 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 27632 invoked from network); 18 Nov 2005 11:48:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2005 11:48:19 -0000 X-Host-Fingerprint: 82.94.239.5 jdi.jdi-ict.nl Linux 2.5 (sometimes 2.4) (4) Received: from ([82.94.239.5:53976] helo=jdi.jdi-ict.nl) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 70/1B-07637-08FBD734 for ; Fri, 18 Nov 2005 06:48:16 -0500 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id jAIBmAdS028822; Fri, 18 Nov 2005 12:48:10 +0100 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id jAIBm7W5028810; Fri, 18 Nov 2005 12:48:08 +0100 Date: Fri, 18 Nov 2005 12:48:07 +0100 (CET) X-X-Sender: derick@localhost To: Andreas Korthaus cc: internals@lists.php.net, Rasmus Lerdorf , Ilia Alshanetsky In-Reply-To: <437DBCAB.3060009@web.de> Message-ID: References: <437B530A.5050105@prohost.org> <437CF6B4.5080207@web.de> <437CF943.7090800@lerdorf.com> <437D0D08.8060805@web.de> <437DBCAB.3060009@web.de> X-Face: "L'&?Ah3MYF@FB4hU'XhNhLB]222(Lbr2Y@F:GE[OO;"F5p>qtFBl|yVVA&D{A(g3[C}mG:199P+5C'v.M/u@Z\![0b:Mv.[l6[uWl' MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdi-ict.nl Subject: Re: [PHP-DEV] dropping curly braces From: derick@php.net (Derick Rethans) On Fri, 18 Nov 2005, Andreas Korthaus wrote: > Derick Rethans wrote: > > > > That's the problem - also grep does not know if [] is used for arrays or > > > stings. That's the same for programmers, it's often not easy to conclude > > > from > > > context - that's my point. > > > > grep won't, but php -l will. > > That's true. But what about "reducing complexity"? > > Don't you think it's useful to allow a convention like {} for strings and [] > for arrays, so you can be sure what $str{1} means without looking at any > context? No. Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org