Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77491 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13729 invoked from network); 22 Sep 2014 22:42:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Sep 2014 22:42:52 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.178 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.178 mail-qc0-f178.google.com Received: from [209.85.216.178] ([209.85.216.178:40586] helo=mail-qc0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/90-09206-AE5A0245 for ; Mon, 22 Sep 2014 18:42:51 -0400 Received: by mail-qc0-f178.google.com with SMTP id x13so933101qcv.9 for ; Mon, 22 Sep 2014 15:42:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=o97rhk+DXDtuxI6109aLb6lYveBV5s+06plkr6CawTI=; b=fcaHdbIK/WoVNCN0TzmcABfjNfn9r+SpmqfZth1R1TwquyHidQtrNlMcfSpCJ5SKs0 DmtuL25039oTpd3V8B+GFiExyN3XUHv+LhSwthDq2+4kuvYHbJKUrC0vL8wST2ZlLBDw BxSh7oibJ8oI4wdX3SDc6CC7OWimWwsYYCp6k11WDP+YnCP8gDrmrrzQZxd/8e/+x1WG ROsrp3eJB/4VzNI/zqrNKMEP4g4+2IpWZUuvBMtTPNG5HT88MQj5ARpe3yi+3oDXyNkY NeQchIizBFMXsmoz/H7n0r8X4SSoafGErzveDJqH1FhFh7ejhXuiBlX2NSukLi4rhDU7 V7rg== MIME-Version: 1.0 X-Received: by 10.140.49.71 with SMTP id p65mr27974686qga.54.1411425766996; Mon, 22 Sep 2014 15:42:46 -0700 (PDT) Received: by 10.140.22.51 with HTTP; Mon, 22 Sep 2014 15:42:46 -0700 (PDT) In-Reply-To: <54208F5C.4080603@sugarcrm.com> References: <6893A97A-EC4C-4124-B804-96E2A26B953F@ajf.me> <54208F5C.4080603@sugarcrm.com> Date: Tue, 23 Sep 2014 00:42:46 +0200 Message-ID: To: Stas Malyshev Cc: PHP internals Content-Type: multipart/alternative; boundary=001a11351c3678001e0503af2bf8 Subject: Re: [PHP-DEV] [VOTE][RFC] Scalar Type Hinting with Cast From: pierre.php@gmail.com (Pierre Joye) --001a11351c3678001e0503af2bf8 Content-Type: text/plain; charset=UTF-8 On Sep 22, 2014 11:06 PM, "Stas Malyshev" wrote: > > 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. 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. > 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. 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. In any case, this endless discussion leads nowhere and we are not going to have anything done using such debates and arguing. Cheers, -- Pierre --001a11351c3678001e0503af2bf8--