Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82235 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64372 invoked from network); 9 Feb 2015 08:04:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Feb 2015 08:04:30 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.220.172 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.172 mail-vc0-f172.google.com Received: from [209.85.220.172] ([209.85.220.172:54616] helo=mail-vc0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 96/82-50460-A0A68D45 for ; Mon, 09 Feb 2015 03:04:28 -0500 Received: by mail-vc0-f172.google.com with SMTP id le20so9173171vcb.3 for ; Mon, 09 Feb 2015 00:04:21 -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:date :message-id:subject:from:to:cc:content-type; bh=bJA1XfVfZPAeTPkKRvg1rbkRPQAcINzeBQ4NFhW4hAI=; b=c7paye+LWI8SrAVSL8y0scGbebhNYzDxSQpsqk2u4o+MDO8J6bl8dGUJNK1EjiSqdt RjEgpFeYo9PinjgmHy7DTTmEbjzFhUkhIcoxG3+/BtLdRr5ovJG/MVfvlrhJ2D/AwclX LgY0eo0drjt5ykW/DHSqVG6jIX2w+x60f7eIA/zz9i/xkYfgUVNPV4dSatQdCpQ2fMNh Px23jHROLd/nrcFfgqWoK5VZyQmRIVtyU9X6mUOYdNlThzl6WWv5WcF4+uKAZDQsg4PD sSV/IpaHa/LlXGOiNHO94ayTXW6HVjncZSA5B7BiyxdRanpndMYMV/vI/65eQk+pFN2A k8qg== X-Gm-Message-State: ALoCoQmJANsQ7Dhw+cdTvgx0EPmMK854ExzG3Y6AQYEbFg+ZRAi42IMHMP23hqynY/NWsDCYNOVfs16joTUyacie7yR06awX+1XA1+KX1dDQbgO8i3fHz9v+ciNNg57kerp4pFDVkYvBpO9fj+2QJBkgd4rih5Mg5g== MIME-Version: 1.0 X-Received: by 10.220.5.195 with SMTP id 3mr9538027vcw.21.1423469061588; Mon, 09 Feb 2015 00:04:21 -0800 (PST) Received: by 10.52.74.73 with HTTP; Mon, 9 Feb 2015 00:04:21 -0800 (PST) In-Reply-To: References: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> <54D5659D.5000602@php.net> <54D7A6DB.3050209@seld.be> <0a344270616df2c33c8a1f5db2df08a0@mail.gmail.com> Date: Mon, 9 Feb 2015 12:04:21 +0400 Message-ID: To: Matthew Leverton Cc: Zeev Suraski , PHP internals Content-Type: multipart/alternative; boundary=001a11c3ef80c3df25050ea337e9 Subject: Re: [PHP-DEV] [VOTE] Scalar Type Hints From: dmitry@zend.com (Dmitry Stogov) --001a11c3ef80c3df25050ea337e9 Content-Type: text/plain; charset=UTF-8 this is more or less true. :( The proposal is presented in an unfair way to include strict typing without the ability to vote for weak types only. Despite of semantic arguments, the implementation is a bit immature and introduces slowdown for any code without type hints. Thanks. Dmitry. On Mon, Feb 9, 2015 at 7:20 AM, Matthew Leverton wrote: > On Sun, Feb 8, 2015 at 3:22 PM, Zeev Suraski wrote: > > I'm well aware of it as I wrote that policy. The goal of the policy was > to > > prevent a situation where a temporary majority can introduce features > into > > the language that would later on be impossible to reverse. It's not by > any > > stretch a good mechanism to solve controversial votes, which again, > should > > ideally be avoided as much as possible. It's just that there isn't a > better > > mechanism. > > > I know I'm unfairly paraphrasing you, but it sounds like you are > saying that for things that you don't have strong feelings about, then > you're fine if the others vote amongst themselves. But for things that > matter to you, you want to reserve the right to prevent change. Is > there a way to fairly describe what you consider too controversial to > vote on? > > The problem I see with votes for this type of feature is that you > probably have a breakdown of something like: > > - 10% of people don't want scalar type hints > - 20% of people want both, but 50% of them would vote for either weak or > strong > - 35% of people want strict, but 80% of them are fine with weak > - 35% of people want weak, but 80% of them are fine with strong > > So if a strict-only vote happens first, you get 73% to say yes. If > weak-only vote happens first, you get 73% to say yes. > > (I'm obviously just making up these numbers with no scientific basis, > but I think the principle is valid.) > > The only way to be fair IMO is to hold a vote where you rank those > four options (weak, strong, both, neither) and hold an instant run-off > vote where the first majority wins. And if 'neither' wins, then agree > that the topic cannot be revisited until next major version, so that > everybody can rest for 5 years. ;) > > -- > Matthew Leverton > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a11c3ef80c3df25050ea337e9--