Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85061 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40519 invoked from network); 16 Mar 2015 14:35:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Mar 2015 14:35:01 -0000 Authentication-Results: pb1.pair.com header.from=laruence@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=xinchen.h@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.217.179 as permitted sender) X-PHP-List-Original-Sender: xinchen.h@zend.com X-Host-Fingerprint: 209.85.217.179 mail-lb0-f179.google.com Received: from [209.85.217.179] ([209.85.217.179:36177] helo=mail-lb0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B1/11-34940-21AE6055 for ; Mon, 16 Mar 2015 09:34:58 -0500 Received: by lbcds1 with SMTP id ds1so32199795lbc.3 for ; Mon, 16 Mar 2015 07:34:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=PxQlq1zoGG9YZ8q18j0CUMNAXJHRNRiHNExgMI8nUmM=; b=HQHvvkznbdgY+lbPm/ONPk7nT/jBCtZ4ranwzFJrhOvWXtmX0JuRt1IadM7RBjmEiU +ZEAirrPyBh76irkdvkfGfY1uQxeAOSAwl779ETx6BCluMC4E/n0uEKRkrDNUUjU8clk D7ufT467q0uHioMZPAyXWcLFmIaxvpn6aSgG95iOp1dLW2tyatmoTDRDYFcQz+24gEJj zVCGzdquws2xyNymLmvOEdUni8QZ9peHV7aizF7upaK1bLVsU2Sj8AiqeBp5z40G9db7 Ri76ozka14fNJMJoerEZrj1lb2HdOf0BIkPBETP5X1uT5ggB/MnheD5+qEkD8LjTNOj7 5j2g== X-Gm-Message-State: ALoCoQnwCEItq40YVbfAoc/zV5RgseAPDgQjqdB3YHTvE0l9sSsUXa4Fi8bT/m1qp/R+rPJE7QzWePlw6hLqqPVVeOy2mVo/U1+pCSJX/S2iKySCwnz70wsmxeSRkJ+IQoMrHy8wT2Zybt6VubQwN2uOViZbO33zIQ== X-Received: by 10.152.163.2 with SMTP id ye2mr32240858lab.89.1426516495321; Mon, 16 Mar 2015 07:34:55 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPSA id ju14sm2228058lab.8.2015.03.16.07.34.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Mar 2015 07:34:54 -0700 (PDT) Received: by lbcgn8 with SMTP id gn8so21352963lbc.2 for ; Mon, 16 Mar 2015 07:34:53 -0700 (PDT) X-Received: by 10.112.54.165 with SMTP id k5mr55525368lbp.57.1426516493208; Mon, 16 Mar 2015 07:34:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.82.99 with HTTP; Mon, 16 Mar 2015 07:34:32 -0700 (PDT) In-Reply-To: <35.09.03331.B7BD6055@pb1.pair.com> References: <35.09.03331.B7BD6055@pb1.pair.com> Date: Mon, 16 Mar 2015 22:34:32 +0800 Message-ID: To: Pascal Chevrel Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] About declare(strict_types = 1) From: laruence@php.net (Xinchen Hui) Hey: On Mon, Mar 16, 2015 at 9:32 PM, Pascal Chevrel wr= ote: > Le 16/03/2015 12:39, Xinchen Hui a =C3=A9crit : >> >> Hey: > > >> >> And last comment, if there no such declare thing, I will definitely >> vote yes to this RFC. > > > Hi Xinchen, > > You can also not vote at all, that's a very valid option. > By voting yes, you say that you want PHP developers to have access to STH= in > PHP 7, by voting No, you say that you don't want PHP developers to be abl= e > to use STH in PHP 7. By not voting, you let the rest of the PHP community > that cares about STH (both for and against) decide if the feature gets in > the language. As a person with voting rights, you should study the RFCs i= n > details, understand them fully and vote on what you think you have > understanding and expertise on. There is no obligation to vote on all RFC= s. > > It seems that you won't use STH yourself so you will probably never use > declare in your code and won't be impacted by the existence or not of the > feature. I also don't like how the declare syntax looks, and similarily I > personnally dislike even more how ugly the namespace syntax is in PHP wit= h > the backslashes (Foo\Bar\Baz), yet, I am happy that we do have the > possibility to namespace our code, because PHP 5 *needed* that feature. A= nd > I think PHP 7 needs something like that, I also think it's a very clever > solution as we can keep on using PHP as a weakly typed language as usual = but > also strenghten some of our code that needs strong typing. > >> >> that's why I want vote no for this, and wait for Bob's Basic STH. >> >> thanks > > > It's too late, Bob's Basic STH missed the schedule for PHP 7, it was > proposed way too late and the coercive STH RFC has just zero chance to pa= ss, > it's too much of a BC break for everybody. The dual mode STH is the only > chance to have something for PHP 7 and remain competitive with HHVM, > Node.js=E2=80=A6 that we see people switch to. Baidu switched to HHVM, Wi= kipedia > too, in my country big names switched from PHP to node.js and that was no= t > just for performance reasons, it was also for the features. Zeev himself > admitted that we need something for PHP 7. > > Personnally, I think the dual mode is a very clever way to please all PHP > developpers, those that want to use weak typing, those that want to use > stronger typing and those like me that would continue to use weak typing > because it's convenient but would be happy to use STH on very specific pa= rts > of his code that would benefit from it. don't worry, it will pass thanks > > Cheers, > > Pascal > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php --=20 Xinchen Hui @Laruence http://www.laruence.com/