Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77488 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5159 invoked from network); 22 Sep 2014 21:06:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Sep 2014 21:06:38 -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.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:51079] helo=smtp107.ord1c.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 22/A4-10955-D5F80245 for ; Mon, 22 Sep 2014 17:06:37 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp6.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 38644803AB; Mon, 22 Sep 2014 17:06:35 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp6.relay.ord1c.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id D9CFF8039D; Mon, 22 Sep 2014 17:06:34 -0400 (EDT) X-Sender-Id: smalyshev@sugarcrm.com Received: from Stass-MacBook-Pro.local ([UNAVAILABLE]. [74.85.23.222]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA) by 0.0.0.0:465 (trex/5.2.10); Mon, 22 Sep 2014 21:06:35 GMT Message-ID: <54208F5C.4080603@sugarcrm.com> Date: Mon, 22 Sep 2014 14:06:36 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: Pierre Joye CC: PHP internals References: <6893A97A-EC4C-4124-B804-96E2A26B953F@ajf.me> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [VOTE][RFC] Scalar Type Hinting with Cast From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > - One about having scalar typed arguements, hinted or not, simple > yes/no, so we at least agree on having the feature I'm not sure how that would work. We agree on having what feature? Having coercive typing and having strict typing are two different options, working in different way and implying different coding approaches. And then there's also a third option which is a "compromise" approach where it is sometimes strict and sometimes not depending on a matrix of choices, and different matrices would work in different way. If I agree, for example, that coercive model is helpful - that doesn't mean I want complete strict typing, and I certainly would prefer none for now - in hope I would succeed convincing the majority in the future in the merits of coercive typing approach - than having strict model implemented now and closing the door for the coercive one forever. So I don't see how "at least agree" without specifying what we agreeing on works out. > To be more clear: We must get a decision here. I am convinced that > this is a top requested feature, since very long. Delay it forever Is there any data to support this conviction that this is not merely requested now and then, but it is a *top* requested feature since very long? Note that none of the languages most close to PHP have it. Also, I did a poll one on stackoverflow: http://programmers.stackexchange.com/questions/27564/what-features-would-you-like-to-have-in-php and it's not on top at all, though it is among the requested ones. However, having no consensus on it, saying "let's get together and make something" does not look like a good idea to me, because there are opportunity costs to prematurely having "something" that is not satisfactory. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/