Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83117 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38761 invoked from network); 18 Feb 2015 20:44:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Feb 2015 20:44:53 -0000 Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.50 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.215.50 mail-la0-f50.google.com Received: from [209.85.215.50] ([209.85.215.50:37449] helo=mail-la0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 96/39-25021-4C9F4E45 for ; Wed, 18 Feb 2015 15:44:53 -0500 Received: by labpn19 with SMTP id pn19so3731934lab.4 for ; Wed, 18 Feb 2015 12:44:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Nbm0YPI5bs9qOkt44ORLqX5dF/mtYOuBddLiVb3L900=; b=f8og68y6tCQZxhEu3dNrexrfBdfVF+s/ROyfrWbeKFjMpqgBRTVOin8DPH7av0+x0P BxW44JysS7AfIQPTB6kVerM5o1jBhECwXGkbGeSyOZZLgom+3vEzT46js9gCXOIZTdNe XxqWcZk3MMCVWbQufv03k6kSINF00oW8ulALPxaIo5AqergrTZDHN/rKgjgzSS25pfNa OzkKCBra88cOwUoQpLk/xxpQutKHL8EmmXcQtpsmIwIPked4oigRRYhyW/oaRIASc51T BnzkhrvRh0fT+4l6hg5lGEFGljdp1S+AEnoeDlbYMfrC5Eul8sDxDY4fNmRNG82f2X6x x1zw== MIME-Version: 1.0 X-Received: by 10.112.171.65 with SMTP id as1mr1051466lbc.45.1424292290199; Wed, 18 Feb 2015 12:44:50 -0800 (PST) Received: by 10.25.43.9 with HTTP; Wed, 18 Feb 2015 12:44:50 -0800 (PST) Date: Wed, 18 Feb 2015 15:44:50 -0500 Message-ID: To: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: [RFC-Discuss] Scalar Type Declarations v0.5 From: ircmaxell@gmail.com (Anthony Ferrara) Dear Internals, Since the resignation of Andrea, the mixed-mode type hint (called declaration in the proposal) proposal has been left abandoned. Considering that the ending votes were 67/34 (66.3%) with several no-votes being only due to reasonably minor issues with the proposal, I would like to re-propose her RFC with three minor modifications: 1. declare(strict_types=1) (if used) is required to be the first instruction in the file only. No other usages allowed. 2. declare(strict_types=1) {} (block mode) is specifically disallowed. 3. int typed variables can resolve a parameter type of float So calling requiresAFloat(10) will work even in strict mode. As this topic has and is being discussed to death, I have put a very large "discussion points" section: https://wiki.php.net/rfc/scalar_type_hints_v5#discussion_points I would kindly ask, before replying that you check to see if your question is answered in that list. If it is not, please follow up here and I will update the RFC. If your question is listed and you feel that it wasn't given proper due, please let's discuss that. https://wiki.php.net/rfc/scalar_type_hints_v5 Considering this proposal is a minor tweak on an already-discussed and voted-on proposal, I plan on bringing this RFC to vote 1 week from today (on February 25th, 2015). Thanks, Anthony