Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52602 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21995 invoked from network); 31 May 2011 22:06:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 May 2011 22:06:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 74.125.83.170 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 74.125.83.170 mail-pv0-f170.google.com Received: from [74.125.83.170] ([74.125.83.170:39671] helo=mail-pv0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FA/B2-25701-F6665ED4 for ; Tue, 31 May 2011 18:06:40 -0400 Received: by pvh21 with SMTP id 21so2397456pvh.29 for ; Tue, 31 May 2011 15:06:36 -0700 (PDT) Received: by 10.142.170.10 with SMTP id s10mr1049770wfe.79.1306879596676; Tue, 31 May 2011 15:06:36 -0700 (PDT) Received: from [192.168.200.149] (c-76-126-236-132.hsd1.ca.comcast.net [76.126.236.132]) by mx.google.com with ESMTPS id x8sm252667wfx.7.2011.05.31.15.06.35 (version=SSLv3 cipher=OTHER); Tue, 31 May 2011 15:06:35 -0700 (PDT) Message-ID: <4DE5666A.3080506@lerdorf.com> Date: Tue, 31 May 2011 15:06:34 -0700 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 MIME-Version: 1.0 To: Michael Shadle CC: PHP internals References: <4DE5368A.6050603@moonspot.net> <2BFFEAC1-395E-4101-9452-002E63DCFD91@seancoates.com> <4DE55AB7.9050206@lerdorf.com> <4DE55CDA.302@sugarcrm.com> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RFC: Short syntax for Arrays (redux) From: rasmus@lerdorf.com (Rasmus) On 05/31/2011 02:59 PM, Michael Shadle wrote: > Forgive me for injecting my $.02 here but what is the original reason > for changing the most basic language syntax to be a little bit > shorter? > > Is it hurting anyone to type out "array()" or something? > > I think it is silly that "shortening array syntax" is up for > discussion but ensuring Unicode compatibility isn't a higher priority. > Not to mention named parameters in functions. Or Consistent naming for > functions str_* vs str*, needle/haystack ordering, etc. If you're > wanting to augment or change fundamentals of the language why not > clean some stuff up there first? Because most of those can't be done without breaking millions of lines of code out there. And a couple of people worked on Unicode for years and got very little support. That is not a small project. This short syntax for arrays is probably the most requested PHP feature right now and we have a working patch that doesn't break any existing code so the effort involved is minimal. If you have a working patch that solves the Unicode issues, by all means, show us. -Rasmus