Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53370 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57498 invoked from network); 19 Jun 2011 02:56:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jun 2011 02:56:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=danielc@analysisandsolutions.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=danielc@analysisandsolutions.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain analysisandsolutions.com from 166.84.1.89 cause and error) X-PHP-List-Original-Sender: danielc@analysisandsolutions.com X-Host-Fingerprint: 166.84.1.89 mailbackend.panix.com Solaris 10 (beta) Received: from [166.84.1.89] ([166.84.1.89:54118] helo=mailbackend.panix.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C5/08-16196-A756DFD4 for ; Sat, 18 Jun 2011 22:56:58 -0400 Received: from panix3.panix.com (panix3.panix.com [166.84.1.3]) by mailbackend.panix.com (Postfix) with ESMTP id B700C32824 for ; Sat, 18 Jun 2011 22:56:55 -0400 (EDT) Received: by panix3.panix.com (Postfix, from userid 14662) id CEA578FDDE; Sat, 18 Jun 2011 22:56:55 -0400 (EDT) Date: Sat, 18 Jun 2011 22:56:55 -0400 To: PHP Internals List Message-ID: <20110619025655.GA14388@panix.com> References: <084D2F1E-87E7-44CF-B8B6-47A250AD928D@seancoates.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <084D2F1E-87E7-44CF-B8B6-47A250AD928D@seancoates.com> User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: [PHP-DEV] Object and Array Literals From: danielc@analysisandsolutions.com (Daniel Convissor) Hi: I wasn't keen on earlier proposals for the [] array syntax. Sean, your case is laid out in a clear manner and addresses my concerns. I like this RFC. > * Strictness of unquoted keys. Keys should be quoted. At the very least, unquoted keys should raise an E_NOTICE. > * Support => in addition to : as a key:value separator. I guess. > * possibility of simply not supporting the \u### syntax for Unicode > characters in literal strings (just like the rest of PHP). It'd be nice to have, but not essential. > * Should mixed-format (numeric and associative arrays) be allowed? > (e.g. [1,'two':2, 3]) Yes, just like JSON (kind of) and PHP support. Thanks, --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409