Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52658 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76342 invoked from network); 1 Jun 2011 11:48:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jun 2011 11:48:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=arvids.godjuks@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=arvids.godjuks@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: arvids.godjuks@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vx0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:61637] helo=mail-vx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 42/A2-61684-22726ED4 for ; Wed, 01 Jun 2011 07:48:50 -0400 Received: by vxb40 with SMTP id 40so4476691vxb.29 for ; Wed, 01 Jun 2011 04:48:46 -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=xhpYEyqyj8NUXFe0J9xE7GyhLIfejsqcWDOaTARcN6M=; b=mjWEZSxDRISA5UPzFZjKHkB9tOfZdgNYzAQ6RaXjo2+qcoxnAdT2T20FmU5h/Wj2qu ZL+O16wRPWC8dJmh0cmItX1PQDtkWVaVgdi0LqhC0pUF16W8KVLIM1Hf8trW78fYFMim e+IIDGDjw025QmKtDdvFbOKky51jW9ZnipNmE= 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=QlNFo9pKagIgjkw1clcCeaXM5ylSx/v7n2oNdKQ37jcqZrG8JTS2DpKWxa2jbOf2zK rLq6hlpj9Mf1FU5kDESgUZPWDSDTDbJme4xgYZdbdxKd4TNtGHImTQj5rHcyD2U649PJ 5vBPVLoz2RlFKzXMUN+f+oUvahX00OchvA2vA= MIME-Version: 1.0 Received: by 10.52.101.195 with SMTP id fi3mr1087525vdb.156.1306928926729; Wed, 01 Jun 2011 04:48:46 -0700 (PDT) Received: by 10.52.101.230 with HTTP; Wed, 1 Jun 2011 04:48:46 -0700 (PDT) In-Reply-To: References: <4DE5368A.6050603@moonspot.net> Date: Wed, 1 Jun 2011 14:48:46 +0300 Message-ID: To: Patrick ALLAERT Cc: Brian Moon , 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: arvids.godjuks@gmail.com (Arvids Godjuks) Holly crap, god save us from that. +1 on short syntax (personally I try to avoid it in JS too - I use new Array() or JSON), but no : please. It's just ridiculous for PHP. 2011/6/1 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 seve= ral >> 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 a= bout >> 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 = core >> developers and userland votes seems to show the opposite it would be >> irresponsible to submit a patch witch is not supported or maintained in = the >> 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 i= t >> first came up. However, with the emergence of JSON and systems that use = JSON >> 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 ab= out >> it. Primarily I would be curious if anyone on the lists (from the RFC wi= ki >> page) below would like to change your vote or if you are not listed belo= w >> 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, Stanisl= av >> Malyshev, Brian Moon, Kalle Sommer Nielsen, Edin Kadribasic >> >> Contra: Antony Dovgal, Derick Rethans, Jani Taskinen, Lokrain, Felipe Pe= na, >> Lukas Kahwe Smith, Marcus Boerger, David Soria Parra, Johannes Schl=C3= =BCter, >> 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 Antono= v, >> 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' : 'appl= e']; > $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'];} > > :) > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >