Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82411 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3881 invoked from network); 11 Feb 2015 03:45:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Feb 2015 03:45:44 -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.217.170 as permitted sender) X-PHP-List-Original-Sender: xinchen.h@zend.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:56089] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EA/B0-33902-760DAD45 for ; Tue, 10 Feb 2015 22:45:44 -0500 Received: by mail-lb0-f170.google.com with SMTP id u14so902431lbd.1 for ; Tue, 10 Feb 2015 19:45:40 -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=S1uD2d9jStlkhTVNgPgPpKSSVXguZDTeoDZT2PQtb2Q=; b=RAXnFJjOsPF6BGJRT9h8wb+M1pLImB8kPURbJ23V2PMCS0CGZMhvBMw9+4h/4HKVnc Fl19JQ+HbDOD6ouYIcPIJNIsISufbFeIiLeSqEG3NZXNXTpfRnOqBi38LwmBl2krWmKs eGGhWhlTv04aZfiMHBML7xCCeTuiiS+R0nnBVpNVpwR4cgAOsKIuuXp15fflt67+Dg4c zePTpMKryfzzyUCVMoZDOVp7CBqoMR7kjts7Po7/bqgv6kXuMDUD3lzXwsCgbZCqIu8i +UImaXfSFX9EQEVRm4RkJ1b4DKGgr4hIgnLkWgKppJ5Af8Hee0nMazsrPz6nORpE1N4b mahQ== X-Gm-Message-State: ALoCoQkekprLKO8FGAXbbiO+vePqXmmvtmRicCdTZMxTSzFZ2rCY45+p2FLec0O3OUOCyuP6GPEFBqBJ7XBaH8ymYI7lZtrK6SGBqSAvli1z6OvV+P41HWoGDYHpyskspQSLtOxIVE/+yIL+FszYIBS8oDHUQ2jLrA== X-Received: by 10.112.217.68 with SMTP id ow4mr25553513lbc.97.1423626340455; Tue, 10 Feb 2015 19:45:40 -0800 (PST) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPSA id x9sm3045514lbb.46.2015.02.10.19.45.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Feb 2015 19:45:39 -0800 (PST) Received: by lams18 with SMTP id s18so862392lam.13 for ; Tue, 10 Feb 2015 19:45:38 -0800 (PST) X-Received: by 10.152.22.129 with SMTP id d1mr25616086laf.22.1423626338882; Tue, 10 Feb 2015 19:45:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.28.193 with HTTP; Tue, 10 Feb 2015 19:45:18 -0800 (PST) In-Reply-To: References: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> Date: Wed, 11 Feb 2015 11:45:18 +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: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 b= een long enough - I don=E2=80=99t think there needs to be, or will be, much= further discussion. >> >> I=E2=80=99d like to make sure that everyone voting understands the RFC f= ully. Please read the RFC in full: the details are important. And if anyon= e has any questions or uncertainties, please ask them before voting. I am v= ery happy to answer them. >> >> I would urge everyone who wants type hints to vote for this RFC. It is n= ot 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 typ= ing, nor weak typing, on anyone who does not want it. It would allow the ad= dition of type hints to existing codebases. It would not create a situation= where userland functions are strict yet internal functions are not, becaus= e the strict mode affects both. I=E2=80=99ve tested the implementation myse= lf on my own code, and it worked well, providing benefits other proposals w= ould 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 (20= 15-02-19). In addition to the vote on the main RFC, there is also a vote on= the type aliases issue, and a vote to reserve the type names for future RF= Cs=E2=80=99 sake if this RFC fails. >> >> The RFC can be found here, and it contains a voting widget: https://wiki= .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... am I wrong?! 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/ --=20 Xinchen Hui @Laruence http://www.laruence.com/