Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82413 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6959 invoked from network); 11 Feb 2015 03:57:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Feb 2015 03:57:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=xinchen.h@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@php.net; sender-id=unknown Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.215.45 as permitted sender) X-PHP-List-Original-Sender: xinchen.h@zend.com X-Host-Fingerprint: 209.85.215.45 mail-la0-f45.google.com Received: from [209.85.215.45] ([209.85.215.45:34952] helo=mail-la0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 38/61-33902-A23DAD45 for ; Tue, 10 Feb 2015 22:57:31 -0500 Received: by labgm9 with SMTP id gm9so995533lab.2 for ; Tue, 10 Feb 2015 19:57:27 -0800 (PST) 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=kBVhU5TSDwJBCJzZJFbZdOvoBmbULgpjZ1p39sBefho=; b=JP2Y1XUsZRswZzrawLenu+RPsSbejJndWymLEgMyXMOIfaZn831x57O8jVPF5Glcg4 cD7s1neIVBkrA1hdYsV2/rvs9ayIt1XEuTmIap+U6IA6e+u+GQ8qUhVfr+yAdRujlRGn DY3xttybPt4TC4PtjC3jTcQrLj0oC8/B3gOYAhMey60S46hTagoTaNeZ06T5Sj/3xjH6 ebg3mBwUwfymYqzhKtlPEaBymKMK0kuLSAyJpHTH/3nIPUal2v/SXW7Ari0mtYmwvU84 DmiI3ql/PRZkGPbV2Hdmu0H9J38tVRvHbEMDeEcxnf/yBTr21vJ5p1DGqew7kR86adZT NYxA== X-Gm-Message-State: ALoCoQn5SS4bAgrMavDzXzzOEjwLmOJ7XS2VWFv5WYxkciL/uWzW4HB52ZMXn21ywYv/pRArAtYHBEt4oAlHDi6wercBmHTs5IeGBsoT2lp6u1f5wbIaS6Lxa6MwvW2s+t0epyTh8TG1jPL/5LiBBsCbUPZkKF07TA== X-Received: by 10.152.27.41 with SMTP id q9mr25228642lag.118.1423627047301; Tue, 10 Feb 2015 19:57:27 -0800 (PST) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPSA id n9sm3062482lbp.0.2015.02.10.19.57.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Feb 2015 19:57:26 -0800 (PST) Received: by labpv20 with SMTP id pv20so944438lab.8 for ; Tue, 10 Feb 2015 19:57:25 -0800 (PST) X-Received: by 10.152.5.72 with SMTP id q8mr26381439laq.57.1423627045452; Tue, 10 Feb 2015 19:57:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.28.193 with HTTP; Tue, 10 Feb 2015 19:57:04 -0800 (PST) In-Reply-To: References: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> Date: Wed, 11 Feb 2015 11:57:04 +0800 Message-ID: To: Andrea Faulds Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [VOTE] Scalar Type Hints From: laruence@php.net (Xinchen Hui) Hey: On Wed, Feb 11, 2015 at 11:45 AM, Xinchen Hui wrote: > Hey: > > On Wed, Feb 11, 2015 at 11:36 AM, Xinchen Hui wrote: >> Hey: >> >> >> On Fri, Feb 6, 2015 at 4:14 AM, Andrea Faulds wrote: >>> Good evening, >>> >>> At long last, I=E2=80=99m going to put the RFC to a vote. It=E2=80=99s = been long enough - I don=E2=80=99t think there needs to be, or will be, muc= h further discussion. >>> >>> I=E2=80=99d like to make sure that everyone voting understands the RFC = fully. Please read the RFC in full: the details are important. And if anyo= ne has any questions or uncertainties, please ask them before voting. I am = very happy to answer them. >>> >>> I would urge everyone who wants type hints to vote for this RFC. It is = not a perfect solution, but there can be no perfect solution to this issue.= However, I think it is better than most of the alternatives suggested thus= far - see the rationale section, and previous discussions. Crucially, this= RFC would keep PHP a weakly-typed language, and not force either strict ty= ping, nor weak typing, on anyone who does not want it. It would allow the a= ddition of type hints to existing codebases. It would not create a situatio= n where userland functions are strict yet internal functions are not, becau= se the strict mode affects both. I=E2=80=99ve tested the implementation mys= elf on my own code, and it worked well, providing benefits other proposals = would not have given (see my previous post about my experiences). >>> >>> Voting starts today (2015-02-05) and ends in two weeks=E2=80=99 time (2= 015-02-19). In addition to the vote on the main RFC, there is also a vote o= n the type aliases issue, and a vote to reserve the type names for future R= FCs=E2=80=99 sake if this RFC fails. >>> >>> The RFC can be found here, and it contains a voting widget: https://wik= i.php.net/rfc/scalar_type_hints >>> >>> Thank you for your time. >>> >> Actually, I was surprised by the progress of voting now... >> >> Seems never have so many users to vote... and bulk of active core >> developers are vote against on it. >> >> As a PHP user, I actually don't care about scalar type hinting much.. >> >> but I am strongly objecting declare thing... >> >> image of, one line setting care make a project doesn't work... >> >> image of, a larger project, some devers user strict_type, some for >> safe doesn't use.. >> >> then they have to add declare to every files's head... >> >> it's a nightmare.... >> >> I , here, acking you please reconsidering your vote... > > > include_one "lib/xxxx.php" // it use strict type > > declare(strict_types=3D0); //damned , restore it. > > > $a =3D new B; // autoload, target file use strict type, > > declare(strict_types =3D 0); //damned, restore it. > > > ?> > > am I wrong?! seems I am wrong with this, it's a false alarm... it can restore automatic= ally. ignore me.. :< thanks > > thanks >> >> thanks >>> -- >>> Andrea Faulds >>> http://ajf.me/ >>> >>> >>> >>> >>> >>> -- >>> PHP Internals - PHP Runtime Development Mailing List >>> To unsubscribe, visit: http://www.php.net/unsub.php >>> >> >> >> >> -- >> Xinchen Hui >> @Laruence >> http://www.laruence.com/ > > > > -- > Xinchen Hui > @Laruence > http://www.laruence.com/ --=20 Xinchen Hui @Laruence http://www.laruence.com/