Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82787 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16625 invoked from network); 16 Feb 2015 07:54:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Feb 2015 07:54:12 -0000 Authentication-Results: pb1.pair.com header.from=hufeng1987@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=hufeng1987@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.179 as permitted sender) X-PHP-List-Original-Sender: hufeng1987@gmail.com X-Host-Fingerprint: 209.85.212.179 mail-wi0-f179.google.com Received: from [209.85.212.179] ([209.85.212.179:62306] helo=mail-wi0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0C/E5-05176-222A1E45 for ; Mon, 16 Feb 2015 02:54:11 -0500 Received: by mail-wi0-f179.google.com with SMTP id hi2so24198531wib.0 for ; Sun, 15 Feb 2015 23:54:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=PNaPbp99uxcnZUyzEPrkqWLpWgxnuu+eV0+KSXbaPS0=; b=YnI/ppq+t50cgxPVZf10W9E0uYzeutd18eY4qG43FaDzkLKhQue8ePFQJ4G9X7tdVv ZWs5slWgQv/L9UsKatPBaN9FiWKIyqKJegHMaIO0L3z5ZBpdpnJx3UB0Ld3XPk4nZAWR FfiZdv9tp4AzeLj3zfRLIoiZjhsClzrCKFjRuuuw+jnNnpGLLusVyDIDb+P4zUDHlYi1 0g3QFsYwVsFPnIVfYWFbrsSkAjPF87hg+4P4V/lJbhLzxR9R5PfT593ETAehun1sJ4Er dUiehq348ITxH0c18Mj4J5G2G5GF5csosYtZNgGqrkxCeCiA3SVfrEAOdK4vwkTcyH9F nPtw== X-Received: by 10.194.81.193 with SMTP id c1mr48257355wjy.11.1424073247787; Sun, 15 Feb 2015 23:54:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.27.56.67 with HTTP; Sun, 15 Feb 2015 23:53:47 -0800 (PST) In-Reply-To: <54E19C84.2090104@pascal-martin.fr> References: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> <54E19C84.2090104@pascal-martin.fr> Date: Mon, 16 Feb 2015 15:53:47 +0800 Message-ID: To: "Pascal MARTIN, AFUP" Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [VOTE] Scalar Type Hints From: hufeng1987@gmail.com (Netroby) We do not have Scalar type hints for years. we code in php for years without any type check. it's ok. not the primary things. Look at other dynamic programming language, they may not have the type check either. It is ok, and it is fine. Besides php, there be always other choice. If you really really need type check now. Take a look HHVM. I guest hacklang will match your need. If the PHP keep current states, my code will running till the earth dead. It works like a ancient rock. What ever , i just care my code work or not. Appreciate your time. ---------------------------- Netroby 2015-02-16 15:30 GMT+08:00 Pascal MARTIN, AFUP : > > Le 05/02/2015 21:14, Andrea Faulds a =C3=A9crit : >> >> 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 typ= e >> aliases issue, and a vote to reserve the type names for future RFCs=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 >> > > Hi, > > Even if this RFC has been withdrawn, I'm posting this here, hoping it mig= ht > prove useful if someone ever tries to revive it. > > We've discussed this RFC quite a bit with other members of AFUP, and fina= lly > ended on the +1 side. > > Basically, adding type-hinting for scalars goes towards a PHP that is a b= it > more "strict" -- which seems like a good thing for us. But, at the same > time, the "weak" mode by default means users can choose to go that way at > their own pace and existing code will keep working, even if calling "stri= ct" > libraries. > > The biggest concern we've had is the declare() syntax that feels a bit we= ird > at first. But that's not enough of a concern for us to be -1 on the RFC a= s a > whole. > > Thanks! > > -- > Pascal MARTIN, AFUP - French UG > http://php-internals.afup.org/ > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >