Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71361 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50382 invoked from network); 20 Jan 2014 21:44:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jan 2014 21:44:33 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 108.166.43.83 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 108.166.43.83 smtp83.ord1c.emailsrvr.com Linux 2.6 Received: from [108.166.43.83] ([108.166.43.83:44988] helo=smtp83.ord1c.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BD/6D-02192-FB89DD25 for ; Mon, 20 Jan 2014 16:44:32 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp3.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id AF0E5500E7; Mon, 20 Jan 2014 16:44:28 -0500 (EST) X-Virus-Scanned: OK Received: by smtp3.relay.ord1c.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 5695F501E1; Mon, 20 Jan 2014 16:44:28 -0500 (EST) Message-ID: <52DD98BB.7020409@sugarcrm.com> Date: Mon, 20 Jan 2014 13:44:27 -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: Sara Golemon CC: "internals@lists.php.net" References: <52DCA3E7.80602@lerdorf.com> <52DCED71.3020207@pthreads.org> <006301cf15f5$22f8df60$68ea9e20$@tutteli.ch> <52DD8D15.7000407@sugarcrm.com> <52DD929E.5070906@sugarcrm.com> In-Reply-To: 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! > I called your analogy ridiculous because it doesn't take the > comparison seriously. I can write a function which requires 10,000 > parameters, does that mean that we should remove functions from the > language? Come off it. It is all about size of the use case. In my opinion, in language like PHP most of the generics use would be overengineering and overcomplication of things that should be simple - like trying to exactly define the detailed types and subtypes of a deep structure in a wrong point - where the structure already exists and being passed around - instead of ensuring the integrity of the structure when it is being created and updated. Or overspecifying and overdetalizing the types of the elements of the structure in the environment where it produces no benefit (e.g., non-compiled dynamic language environment). I am perfectly aware that there are use cases where it legitimately serves a useful purpose - e.g. huge projects which have rigid coding rules, static typecheck tools and which require it to control complexity which can not be controlled otherwise. I just doubt it is a good use case for PHP. I feel it is just making it - yes, I know it is being said 100 times and not always appropriately, but that's exactly how I feel here - Java with dollar signs and integer-to-string conversions. And I do not accept the argument of "if you don't like it, you don't have to use it". It is true, but only to a point. You can, in theory, use C++ without templates. In practice, if you want to call yourself a C++ programmer, you can not ignore them, not now. Language is also an ecosystem, and I think Java-ifying PHP would take the ecosystem not in the right direction. You, of course, may disagree and thing it is exactly the right direction - there is always a moment where preferences which are subjective come to play and in such a moment there's nothing to do but agree to disagree. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227