Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5280 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2137 invoked by uid 1010); 6 Nov 2003 01:27:27 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 2113 invoked by uid 1007); 6 Nov 2003 01:27:27 -0000 Message-ID: <20031106012727.2112.qmail@pb1.pair.com> To: internals@lists.php.net Date: Thu, 06 Nov 2003 02:27:27 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030903 Thunderbird/0.2 X-Accept-Language: en-us, en MIME-Version: 1.0 References: <20031105224100.44394.qmail@pb1.pair.com> <3FA99EE5.1050209@cschneid.com> In-Reply-To: <3FA99EE5.1050209@cschneid.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 80.126.21.70 Subject: Re: [PHP-DEV] Proposal: Array syntax From: abies@php.net (Ard Biesheuvel) > After all this I guess I have to maintain my own PHP branch and hope for > PHP6 to address some of my issues. Or switch to another language at some > point, because a language to me is a tool, not a religion. This is exactly the point. Why waste so much energy on deciding how to spell out your array definitions. The decision has been made a long time ago to use the array() syntax. Adding alternatives adds nothing but the ability to save a few key strokes. (Personally, I would have preferred the [] syntax, BTW) Try/catch however are a fundamental extension to the functionality of the language. Adding these was a good idea in my opinion. Borrowing the syntax from Java/C++ was an obvious choice. I can't believe you would seriously consider maintaining your own PHP branch, only to be able to use dangling commas and [] array syntax. -1 on both the array syntax and dangling comma issues. -- Ard