Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52655 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72641 invoked from network); 1 Jun 2011 11:38:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jun 2011 11:38:00 -0000 Authentication-Results: pb1.pair.com header.from=patrick.allaert@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=patrick.allaert@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: patrick.allaert@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:55153] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 70/02-61684-69426ED4 for ; Wed, 01 Jun 2011 07:37:58 -0400 Received: by bwz18 with SMTP id 18so4976450bwz.29 for ; Wed, 01 Jun 2011 04:37:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=KQjTJsd/KZBgNzNci9blwoDLC/uEXoDukppIlc9fcss=; b=nWd300U8CC61J7Tls+ddGjMcIJS0j4IcMRJ2ITPGCQyetg5KRW7pLZd3Rf8OzlosV4 LlUR4sdMSVohIMU+a/7/xcMoDapLM+JVwqUDw9CF43kKmuWngiv+iOY7NNoD4vBR7P4T /Tl6u2w5CdTSzXHzrygF30p2gA+jVsyqjiAMA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=cxsXru0YZ1mTkwTh5UOHgH4SyvFS9mxa8GWeuDYswg1bvAB9tnseCK68UBxON60jRS 0Lw2CdqCZOl7rQgNSmSDEQ1BqmLW+sUMFW3RLNt0QyfFcKPpT25kuyQvD9WZdK6bKpm0 tbVODnIZ21+ieevAxVfgAXK/cUYH5lcbs4Qfk= MIME-Version: 1.0 Received: by 10.204.82.166 with SMTP id b38mr781031bkl.207.1306928274862; Wed, 01 Jun 2011 04:37:54 -0700 (PDT) Received: by 10.204.39.78 with HTTP; Wed, 1 Jun 2011 04:37:54 -0700 (PDT) In-Reply-To: <4DE5368A.6050603@moonspot.net> References: <4DE5368A.6050603@moonspot.net> Date: Wed, 1 Jun 2011 13:37:54 +0200 Message-ID: To: Brian Moon Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] RFC: Short syntax for Arrays (redux) From: patrick.allaert@gmail.com (Patrick ALLAERT) 2011/5/31 Brian Moon : > https://wiki.php.net/rfc/shortsyntaxforarrays > > Since this was brought again recently by Rasmus > (http://markmail.org/message/fx3brcm4ekh645se) and on Twitter where sever= al > people including Andi chimed in on it and Ilia seemed to reverse his > thoughts as well (with caveats), I thought I would start a real thread ab= out > it. The reason the RFC stalled was stated as: > > "This patch will not be accepted because slight majority of the core > developers voted against. Though if you take a accumulated mean between c= ore > developers and userland votes seems to show the opposite it would be > irresponsible to submit a patch witch is not supported or maintained in t= he > long run." > > So, the PHP users want it, but too many PHP core devs did not want it or = did > not see the use of it. From rereading the mailing list archive, most had = the > tone of "I don't see a reason for it." I was in that camp in 2003 when it > first came up. However, with the emergence of JSON and systems that use J= SON > as an interface, this type of syntax would be most welcome in the day to = day > life of a PHP developer. > > I would prefer (as Rasmus pointed out) not to start a long discussion abo= ut > it. Primarily I would be curious if anyone on the lists (from the RFC wik= i > page) below would like to change your vote or if you are not listed below > and would like to be counted, that would be great too. > > PHP SVN account holder voters > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > Pro: Andrei Zmievski, Andi Gutmans, Pierre Joye, Rasmus Lerdorf, Stanisla= v > Malyshev, Brian Moon, Kalle Sommer Nielsen, Edin Kadribasic > > Contra: Antony Dovgal, Derick Rethans, Jani Taskinen, Lokrain, Felipe Pen= a, > Lukas Kahwe Smith, Marcus Boerger, David Soria Parra, Johannes Schl=C3=BC= ter, > Maciek Sokolewicz, Philip Olson, Ilia Alshanetsky, Daniel Brown, Jochem > Maas, Hannes Magnusson, David Coallier > > > Other voters > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Pro: Sebastian Deutsch, Ryusuke Sekiyama, Stefan Marr, Alexey Zakhlestin, > Carl P. Corliss, Darius Jahandarie, Giedrius D, Eric Coleman, Max Antonov= , > Mike Ford, Larry Garfield, Sam Barrow, Taylor Luk, Hans Ahlin, Karoly > Negyesi, Guilherme Blanco, Jonathan-Bond Caron > > Contra: Geoffrey Sneddon, Tomi Kaistila, David Z=C3=BChlke > > > -- > Brian. > http://brian.moonspot.net > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php @Zend Suggestion for the Zend PHP 5.4 Certification: Which of the following constructs are valid: $array =3D [3 =3D> [42], 'foo': array( 'orange' =3D> 'juice'), 'bar' =3D> '= apple']; $array =3D [3 =3D> [42], 'foo': array( 'orange' : 'juice'), 'bar' : 'apple'= ]; $array =3D [[3] =3D> 42, 'foo': array( 'orange' =3D> 'juice'), 'bar' =3D> '= apple']; {$array =3D [3 =3D> [42], 'foo': array( 'orange' =3D> 'juice'), 'bar' =3D> = 'apple'];} :)