Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34725 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26325 invoked by uid 1010); 11 Jan 2008 14:28:53 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 26310 invoked from network); 11 Jan 2008 14:28:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jan 2008 14:28:53 -0000 Authentication-Results: pb1.pair.com header.from=mark.dennehy@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=mark.dennehy@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.82.239 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mark.dennehy@gmail.com X-Host-Fingerprint: 66.249.82.239 wx-out-0506.google.com Received: from [66.249.82.239] ([66.249.82.239:37511] helo=wx-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2E/28-09267-42D77874 for ; Fri, 11 Jan 2008 09:28:53 -0500 Received: by wx-out-0506.google.com with SMTP id s14so831223wxc.26 for ; Fri, 11 Jan 2008 06:28:51 -0800 (PST) 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:in-reply-to:mime-version:content-type:references; bh=CD+GVNqE0H+rNdjSy3eUlRpF0b215VLFb7RnEq0MFrk=; b=ZmmTjGJPc/s4FvEv5AvWQ7YHNLzXe+8TaVnMfb0VvSSSEoPxweOCxfN3oNuInObW+zWQzOKauJp5gtpR0fQ0ioUCt+TTtiWRdgTwiJ77DNziwo3zJrekBMMelEodve1CmuBimiorUWtZaJqDHSSkOz98ZdG4Cw0fJoRO/lpNkxE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=D23FFTII0F3z6Y0BR4UdXYOn/q/7BZMQ+ku0xL6mr0mVfJ7ae0CiTo3K/V1Ouk++CWsTHyBsw5IxdDZfkXF+t3s63j6g8/cX+RMh3uwGndqCofiASSiUXdGDS3KkiFdJgHtzcbvz+l+Y8i0JpK4dNgFe5l8Skbas9do1DLw3hYE= Received: by 10.150.186.12 with SMTP id j12mr1368247ybf.55.1200061731735; Fri, 11 Jan 2008 06:28:51 -0800 (PST) Received: by 10.150.153.19 with HTTP; Fri, 11 Jan 2008 06:28:51 -0800 (PST) Message-ID: Date: Fri, 11 Jan 2008 14:28:51 +0000 To: internals@lists.php.net In-Reply-To: <1A1C5E07-4057-4A36-8406-B0FB8BA14185@googlemail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_705_20585125.1200061731678" References: <1A1C5E07-4057-4A36-8406-B0FB8BA14185@googlemail.com> Subject: Re: [PHP-DEV] [RFC] Square brackets shortcut From: mark.dennehy@gmail.com ("Mark Dennehy") ------=_Part_705_20585125.1200061731678 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Jan 11, 2008 2:17 PM, Geoffrey Sneddon wrote: > I don't think tiredness to type an extra five characters should be an > excuse to change the syntax. No, but clarity of expression is a valid reason to do so. > > a) Commit square bracket array shortcut patch > > keys and values are separated by colons. > Breaks from PHP's => for no apparent reason (one character too many > character this time?), which is just confusing (that's an implicit -1). Agreed; > > b) Commit square bracket array shortcut patch > > keys and values are separated by double arrows. > Breaks backwards compatibility to save typing five characters. See > above. -1. > It doesn't break backwards compatibility; the new syntax is an alias, not a replacement. The older array() syntax will still be in place, if I've understood the earlier posts correctly. -- Mark Dennehy ------=_Part_705_20585125.1200061731678--