Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37980 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19364 invoked from network); 28 May 2008 19:32:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 May 2008 19:32:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.236 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.198.236 rv-out-0506.google.com Received: from [209.85.198.236] ([209.85.198.236:57305] helo=rv-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 88/17-10063-A53BD384 for ; Wed, 28 May 2008 15:32:43 -0400 Received: by rv-out-0506.google.com with SMTP id g37so3450118rvb.23 for ; Wed, 28 May 2008 12:32:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=QQwuhD051wD/S41V+nm/o/fhTPM7zKi0U8SMuly9A4k=; b=G53C1RHja+nGleLTyBoUH5xqjUTkEePyuAuD58AYW6v0GwLoOZUYhld0w8vnmmO52D4bU4qmueB6ol84dEQdkRFr5VYCtlId2u3c93up6A3xAfrZ+l3dixNPlmimMFgwbUsRI46ynP5f99fN5VQ4jU/IH/62skgZ+i7k0WfuROc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RzgHSNBgNaHmNApbZImuUhqALoiViMM3saLO3Y/vzfLorbQeWhqnsWVtN5m8cMFzsh18v1wpc5pM3AEkfCHht/AsjK0sniLn5qXz97m/xwQjvO0PRaqu4vb8VE7VoosznNr1A0YUMH5TBipjuYA44DO7ZyK0Bat+GzXVyhQvQis= Received: by 10.141.141.3 with SMTP id t3mr1545744rvn.52.1212003160470; Wed, 28 May 2008 12:32:40 -0700 (PDT) Received: by 10.141.123.13 with HTTP; Wed, 28 May 2008 12:32:40 -0700 (PDT) Message-ID: Date: Wed, 28 May 2008 21:32:40 +0200 To: "Gregory Beaver" Cc: "Stan Vassilev | FM" , "PHP Developers Mailing List" In-Reply-To: <483DAE91.7020505@chiaraquartet.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <0412F6FE505049F7901EAB8C61774839@pc> <483DAE91.7020505@chiaraquartet.net> Subject: Re: [PHP-DEV] Re: Short syntax for array literals [...] From: pierre.php@gmail.com ("Pierre Joye") hi, What's the idea behind repeating the same (good or bad) argument endlessly with more or less prose around them? Thanks for voting at the end anyway. On Wed, May 28, 2008 at 9:12 PM, Gregory Beaver wrote: > I've thought about allowing [] for a while and personally have come up > with my own litmus test for new features. > > 1) is the syntax missing from the language? > 2) if so, does the syntax add missing functionality or significant > maintenance benefit? > 2) if not, does the new syntax add significant value? > > #1 no, array() is the same [-1] > #2 not applicable [0] > #3 [-.5] > * can't google [] > * makes arrays simpler to type and take up less space > * adds potential for confusion between array access and creation: > > $a['hi']; > $a;['hi']; > > both are now suddenly valid PHP > > * syncs with javascript and other languages > * opens pandoras box - PHP is simpler than Perl because there are not > 20 ways of doing the same thing with different punctuation shorthands > > So I find #1 is -1, #2 is 0, #3 is about -.5 > > Although the idea is somewhat attractive, I've found no drawbacks to > array() syntax, and plenty of dangers with adding any new alternate > syntax, and this ultimately makes my vote -1 > > Greg > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Pierre http://blog.thepimp.net | http://www.libgd.org