Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83129 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62060 invoked from network); 18 Feb 2015 22:21:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Feb 2015 22:21:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=albertcasademont@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=albertcasademont@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.182 as permitted sender) X-PHP-List-Original-Sender: albertcasademont@gmail.com X-Host-Fingerprint: 209.85.217.182 mail-lb0-f182.google.com Received: from [209.85.217.182] ([209.85.217.182:45503] helo=mail-lb0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AF/7D-25021-E6015E45 for ; Wed, 18 Feb 2015 17:21:34 -0500 Received: by lbjb6 with SMTP id b6so4112435lbj.12 for ; Wed, 18 Feb 2015 14:21:31 -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; bh=3YfMaUFnq41zoxC2g4uPNNgchf7HP9vn6W/XDl/F95I=; b=ll8BXJwlOW42GPqvocEPCgquV95ymau8aFXvHlBljQ9LGQ/FXf8tecyhaHRKcKIg1P SbtZ9KrOCQAxZPcJ0SEyfgr/fJMOhdpJYatvcri54ZU7t+PNhXGZh5VHYhKTdyT9WSK5 fl8+U2AAYXIiTDUa3QGKRlc7U8eJrnnuOj1CDl/At6b7M1ZGRTYy/PA/f1yAtCMYfk5l SO66Ur5QT7cGX8TqvPEmYg+ATiPB2ed7KngNLZVAnY+UeBvhCUdZyCqT7+CdYbUICyWu dpq2DoEOusv+pl1GURnfuZDOj8j9rplH+COk8Ve6+++/+rEhrmqlYCK1ubz9BzWKiAdy vczw== X-Received: by 10.112.255.104 with SMTP id ap8mr1239211lbd.105.1424298091544; Wed, 18 Feb 2015 14:21:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.154.194 with HTTP; Wed, 18 Feb 2015 14:21:11 -0800 (PST) In-Reply-To: References: Date: Wed, 18 Feb 2015 23:21:11 +0100 Message-ID: To: Anthony Ferrara Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11348de0cd049c050f643deb Subject: Re: [PHP-DEV] [RFC-Discuss] Scalar Type Declarations v0.5 From: albertcasademont@gmail.com (Albert Casademont Filella) --001a11348de0cd049c050f643deb Content-Type: text/plain; charset=UTF-8 Hi Anthony! Thanks for bringing this up again. I am asking you the same I asked Andrea 2 weeks ago on Twitter: make it a triple option vote please. She didn't want to do it, hope you do! This way you eliminate the neverending discussion about weak vs strict, let the votes decide and see who really prefers weak type hinting only and who prefers the stricter way, both camps will have an option to vote. So I propose 3 voting options: Yes (strict), Yes (weak), No. The Yes votes combined need 2/3 of the votes. Then a simple majority of 50%+1 between the different Yes votes is needed. Thanks! Albert On Wed, Feb 18, 2015 at 9:44 PM, Anthony Ferrara 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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a11348de0cd049c050f643deb--