Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52664 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86596 invoked from network); 1 Jun 2011 12:10:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jun 2011 12:10:05 -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 74.125.82.170 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: 74.125.82.170 mail-wy0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:64498] helo=mail-wy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C4/C4-61684-B1C26ED4 for ; Wed, 01 Jun 2011 08:10:03 -0400 Received: by wyb34 with SMTP id 34so4565886wyb.29 for ; Wed, 01 Jun 2011 05:10:00 -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=S0bfW8DTimzN5JTxjdag4tg7W5c1KOxRcAenSz1uHEI=; b=pQRdqybYUqIduxKH3hKIsAi5CXy538hfPmlPE7jDRx52ehuzEL2HHHA2gKEreQzQie xW+aer1ZxKmQLUSuWJ2CIl1ZsPHectSB5hBQPYlrGiTdkW0Dg8Te1ZssssBLGPYgmF5n ZJ2ITE2X6bHbXOMLJKbmIVam7G6hTaYa2fH6g= 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=Ye6WOWTO+xhmvCh3hgxxvSHCTtQgtZScfLajZz93nkgKhr4RmB8h1bIRr7LuCWefIC xsufRrvRymvdOn/48e4Rpd/Ksu9Gcpj+D4OfgiD7H/lGyWTPy86m2RU8D8dFD/66kVxW Tb9ZFoxdBN14Iui4wBjsa1JovouySAlLWE7+8= MIME-Version: 1.0 Received: by 10.216.15.137 with SMTP id f9mr6959249wef.62.1306930200765; Wed, 01 Jun 2011 05:10:00 -0700 (PDT) Received: by 10.216.253.168 with HTTP; Wed, 1 Jun 2011 05:10:00 -0700 (PDT) In-Reply-To: <4DE62B09.6070308@croscon.com> References: <4DE5368A.6050603@moonspot.net> <4DE62B09.6070308@croscon.com> Date: Wed, 1 Jun 2011 14:10:00 +0200 Message-ID: To: Marcel Esser Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] RFC: Short syntax for Arrays (redux) From: pierre.php@gmail.com (Pierre Joye) can we please (please!) focus on voting on the RFC and avoid an enumeration of all possible syntax, formats, ideas, trolls&co we had in the last decade? Simply vote and let us move one. Thanks for your understanding, On Wed, Jun 1, 2011 at 2:05 PM, Marcel Esser wro= te: > My kneejerk reaction to this, as no one particularly important, is to not > allow mixing those syntaxes. > > I looked at the RFC a minute ago, and I read a reference to a parallel > solution to this being named parameters. Which, I think, is not accurate. > The problem with the array() notation is definitely at deep nesting level= s. > The fact that arrays as arguments suddenly look nicer is basically just a > bonus. I really just don't want to type array() twenty-five times in the > same data structure. > > PS: That is not to say that I wouldn't love named parameters; I would ado= re > them. I can't count how many times I've thought that a router would benef= it > enormously from being able to do that. However, using an array instead > worked fine - and that is cool. > > - M. > > On 6/1/2011 8:01 AM, Arvids Godjuks wrote: >> >> My personal feel about this is that yes, short arrays are not bad, but >> things like >> >> $a =3D new A; >> $a[array()]; >> >> just scare the crap of me when I see them. To me PHP is easy on syntax >> and it's good. When I see Ruby or Python code with all it's crazy >> magic I feel sick. Still one day I will have to learn one, but that >> doesn't mean PHP should go that way too (i'm not alien to system >> languages, I had some practice with Pascal, Delphi& =A0C some years ago, >> just wanted to go the WEB path so migrated to PHP). >> >> If it's not too much, it would be good to avoid such strange >> constructs at all, because people are mean and they tend to do bad >> things in code. >> > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org