Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71302 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13756 invoked from network); 20 Jan 2014 07:43:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jan 2014 07:43:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 108.166.43.107 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 108.166.43.107 smtp107.ord1c.emailsrvr.com Linux 2.6 Received: from [108.166.43.107] ([108.166.43.107:45254] helo=smtp107.ord1c.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C8/42-02192-F93DCD25 for ; Mon, 20 Jan 2014 02:43:27 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp6.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 9E7F298097 for ; Mon, 20 Jan 2014 02:43:24 -0500 (EST) X-Virus-Scanned: OK Received: by smtp6.relay.ord1c.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 627969817D for ; Mon, 20 Jan 2014 02:43:24 -0500 (EST) Message-ID: <52DCD39B.5040205@sugarcrm.com> Date: Sun, 19 Jan 2014 23:43:23 -0800 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: "internals@lists.php.net" References: <52DC125C.4010609@ajf.me> In-Reply-To: <52DC125C.4010609@ajf.me> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Introducing "Array Of" RFC From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > After a little thought, I think I'd rather we use the HHVM syntax here. > Having "Array" for an untyped array but "Bar[]" for a typed one is > silly. "Array" and "Array" make more sense. Being able to type keys > would be nice, too. Except that there's no type "array" in PHP, so we're just inventing things out of the thin air that mean nothing. Just because some other language has common syntax - which in *that* language means something, since they actually have typed arrays. But in PHP it doesn't mean anything except being pulled in to save couple of lines of code. I think we should not do such things in PHP - if we want to have language that makes sense and not just a hodgepodge of random syntax constructs pulled from all over the place and hastily bolted on together - we should not put in any syntaxes that do not make sense in the rest of the language. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227