Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77561 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82721 invoked from network); 24 Sep 2014 00:34:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Sep 2014 00:34:21 -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.115 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 108.166.43.115 smtp115.ord1c.emailsrvr.com Linux 2.6 Received: from [108.166.43.115] ([108.166.43.115:56357] helo=smtp115.ord1c.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 04/41-02052-B8112245 for ; Tue, 23 Sep 2014 20:34:19 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp15.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 0AA6C380358; Tue, 23 Sep 2014 20:34:16 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp15.relay.ord1c.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id ACC3B3802DC; Tue, 23 Sep 2014 20:34:15 -0400 (EDT) X-Sender-Id: smalyshev@sugarcrm.com Received: from Stass-MacBook-Pro.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net [108.66.6.48]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA) by 0.0.0.0:465 (trex/5.2.13); Wed, 24 Sep 2014 00:34:15 GMT Message-ID: <54221187.7040802@sugarcrm.com> Date: Tue, 23 Sep 2014 17:34:15 -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> <54208F5C.4080603@sugarcrm.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [VOTE][RFC] Scalar Type Hinting with Cast From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > Most? > > Python has it, java too, ruby and perl not. We can continue to list > those having them or not, not sure that brings much to this discussion. Only Python 3 has it, and I'm not sure bringing up Python 3, given its known adoption issues, is the best example how we could plan PHP 7. In any case, python 3 seems to be rather an exception than the rule amongst scripting/dynamic languages, as it seems to me. That brings to this discussion an argument that if people that have no PHP baggage, no BC issues related to existing PHP code, etc. but working in roughly the same space as PHP under roughly the same paradigms chose to forego strict typing in that context - maybe it's not such a stupid idea. Maybe we can learn from their experience too. We've often borrowed from other languages, so consider it a case of negative borrowing :) > Everyone I asked wants it, be at conferences, UGs, or devolopers of one > of the top tools or framework out there. There was > also http://www.php-vote.com/browse/latest showing in the top requests. This site has whopping 44 votes for "type hints with scalar types" and 52 for "100% unicode". It is rather hard for me to take it as a data point that it is requested for everybody. > In any case, this endless discussion leads nowhere and we are not going > to have anything done using such debates and arguing. OK, how do you propose to make anything done? Just ram through whatever gets through the vote at random moment of time, whatever the disagreements and issues are? Use some process which would allow us to find a better solution? Which process? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/