Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20112 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62609 invoked by uid 1010); 17 Nov 2005 23:33:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 62594 invoked from network); 17 Nov 2005 23:33:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Nov 2005 23:33:58 -0000 X-Host-Fingerprint: 70.85.46.36 unknown Received: from ([70.85.46.36:56616] helo=prohost.org) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id BB/0A-07637-5631D734 for ; Thu, 17 Nov 2005 18:33:57 -0500 Received: (qmail 15076 invoked from network); 17 Nov 2005 23:33:54 -0000 Received: from prohost.org (HELO ?127.0.0.1?) (70.85.46.36) by prohost.org with SMTP; 17 Nov 2005 23:33:54 -0000 Message-ID: <437D1361.5080504@prohost.org> Date: Thu, 17 Nov 2005 18:33:53 -0500 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andreas Korthaus CC: Rasmus Lerdorf , internals@lists.php.net References: <437B530A.5050105@prohost.org> <437CF6B4.5080207@web.de> <437CF943.7090800@lerdorf.com> <437D0D08.8060805@web.de> <437D0E22.7080006@lerdorf.com> <437D11B7.7090102@web.de> In-Reply-To: <437D11B7.7090102@web.de> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] dropping curly braces From: ilia@prohost.org (Ilia Alshanetsky) Andreas Korthaus wrote: > OK, but by dropping {} for strings you also remove the possibility to > have a convention like "[] for arrays and {} for strings". > If I could decide I would drop {} for arrays and [] for strings, but I > fear I will not be asked to decide... ;-) You may think that {} and [] are different, but in reality same code deals with both. Having two constructs for the same behavior is silly and leads to confusing, hard to read code. Especially so when you consider the fact {} has another meaning that is completely different. Ilia