Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83249 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46963 invoked from network); 19 Feb 2015 23:07:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2015 23:07:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.46 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.215.46 mail-la0-f46.google.com Received: from [209.85.215.46] ([209.85.215.46:39214] helo=mail-la0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 07/16-10294-8AC66E45 for ; Thu, 19 Feb 2015 18:07:20 -0500 Received: by labgq15 with SMTP id gq15so2838203lab.6 for ; Thu, 19 Feb 2015 15:07:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=5ZcgL7MFxZIJW8H+6YL9yEmH+01/ZZ6vCcSUcYCrTTI=; b=N6ZcE7azutJZExn9p/aLGEBCmxbdxq3fSJCbHnxrbD+WbuAmjrVzBmREnSlJQhaev+ o/geH82AnI8dzcRgMggfTbneLMLEiqpkvBsGfbHC3dgJSOEFYQk1gVgvPEgYbX0lm5ot UMJzg/7I7JV+OWzlXwCCsUShkW1EiWQs3kvFvo7y0vSyMzNI61ZKOHoVokOjzkc5fWBd TpZA93QOe3zh42fMgCW1a5X/H6D4MEZ2fotcWwOyGE4dH5K2hkrbwRYRxekftSm6cu9C dJ7f+umAWpLx5GfOyTQwtUG5fVfi2boMlUXHRnqntrcpXJ3gnxeqJ6Dqjej++IslFbJU Qsyw== MIME-Version: 1.0 X-Received: by 10.152.5.72 with SMTP id q8mr6049913laq.57.1424387237227; Thu, 19 Feb 2015 15:07:17 -0800 (PST) Received: by 10.25.43.9 with HTTP; Thu, 19 Feb 2015 15:07:17 -0800 (PST) In-Reply-To: References: Date: Thu, 19 Feb 2015 18:07:17 -0500 Message-ID: To: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [RFC-Discuss] Scalar Type Declarations v0.5 From: ircmaxell@gmail.com (Anthony Ferrara) All, An interesting point was brought up related to block mode: https://twitter.com/drrotmos/status/568540722586107904 Namely that generated file caches may need the ability to switch block mode on-and-off. I'm considering making the change to add that. If that happens, declare must be the outermost block, and no non-declare blocks would be allowed in the outermost scope of the file: wrote: > 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