Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71354 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38831 invoked from network); 20 Jan 2014 21:07:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jan 2014 21:07:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 198.187.29.247 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 198.187.29.247 imap4-3.ox.registrar-servers.com Received: from [198.187.29.247] ([198.187.29.247:38021] helo=imap4-3.ox.registrar-servers.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 90/FA-02192-EFF8DD25 for ; Mon, 20 Jan 2014 16:07:11 -0500 Received: from localhost (localhost [127.0.0.1]) by oxmail.registrar-servers.com (Postfix) with ESMTP id D47A656007F; Mon, 20 Jan 2014 16:07:07 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap4.ox.registrar-servers.com Received: from oxmail.registrar-servers.com ([127.0.0.1]) by localhost (imap4.ox.registrar-servers.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id pi_V9YOuJ-T4; Mon, 20 Jan 2014 16:07:07 -0500 (EST) Received: from [192.168.0.200] (unknown [176.25.177.94]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by oxmail.registrar-servers.com (Postfix) with ESMTPSA id BB7A9560075; Mon, 20 Jan 2014 16:07:06 -0500 (EST) Message-ID: <52DD8FF8.40804@ajf.me> Date: Mon, 20 Jan 2014 21:07:04 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Stas Malyshev , Sara Golemon CC: "internals@lists.php.net" References: <002001cf12da$2bfbda90$83f38fb0$@tutteli.ch> <52DCA3E7.80602@lerdorf.com> <52DCED71.3020207@pthreads.org> <006301cf15f5$22f8df60$68ea9e20$@tutteli.ch> <52DD77E8.8000800@ajf.me> <52DD8E98.3010606@sugarcrm.com> In-Reply-To: <52DD8E98.3010606@sugarcrm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Introducing "Array Of" RFC From: ajf@ajf.me (Andrea Faulds) On 20/01/14 21:01, Stas Malyshev wrote: > Hi! > >> Dictionary[] foo <-- Is that *really* what you want an >> array of int->string dictionaries to look like? Really? > > In every (popular) dynamic language on a planet (Perl, Python, Ruby, > Javascript, Lua, Groovy) it looks roughly like that (within syntax > variations): > > foo = [Dictionary()] > > I wonder why it is enough for them? Are they all missing something very > important? > You might note that what you've just provided an example of is not, in fact, a type specifier. It is a literal. For a similar reductio ad absurdiam, I might as well give an example from C - a struct literal: foo = {7, 5, create_list(), {"this is a string"}} It serves no usefulness to the conversation here. This is about type specifiers, not literals. -- Andrea Faulds http://ajf.me/