Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80560 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2793 invoked from network); 15 Jan 2015 15:59:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jan 2015 15:59:35 -0000 Authentication-Results: pb1.pair.com header.from=j.boggiano@seld.be; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=j.boggiano@seld.be; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain seld.be designates 74.125.82.49 as permitted sender) X-PHP-List-Original-Sender: j.boggiano@seld.be X-Host-Fingerprint: 74.125.82.49 mail-wg0-f49.google.com Received: from [74.125.82.49] ([74.125.82.49:51988] helo=mail-wg0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 03/BE-14306-23FD7B45 for ; Thu, 15 Jan 2015 10:39:31 -0500 Received: by mail-wg0-f49.google.com with SMTP id n12so15645884wgh.8 for ; Thu, 15 Jan 2015 07:39:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=blSj7h3xfY5QqEWcAd96SHDtiOFXakJ9Glc+Zw7xrzc=; b=JMfPNhC2wlJJYGCIr5oauFjvGy8y745wWclJEjS32kINnuhwmOovTUxPJTu8uKPdVd LXFTr+vWTPWt2RifjLUjRfK1IMk5DQZSOxNENF/+rdEtDD/upBNI9Bw/lFbbAMm0UJGA cNjGtmByWiGzCwz8LRxVs5zcPeZkoQ2wKaUIKuP8uIJovj7vFFlFA6dzlkquh2J+RnsR KSlAycWgP470N/8rjASDddm6lphSe9W9tVs6Lh9igm/LqVaOoVGFOIkXcZ6ul15r4Ajg 5S86kOAbK1iwwYUyjdAbbWh0gqaToSPgvMJvaRzeRGXAopyngssKtuBSmdVgJKK36RLr OmJw== X-Gm-Message-State: ALoCoQlFIewTX/5KxTVPZrLgnow2btqb8HhL6OtQWQd0BmTR5PcfSee0CDCjLBexndU50smoc7hZ X-Received: by 10.180.160.144 with SMTP id xk16mr62958800wib.12.1421336364583; Thu, 15 Jan 2015 07:39:24 -0800 (PST) Received: from [192.168.1.66] (83.90.199.146.dyn.plus.net. [146.199.90.83]) by mx.google.com with ESMTPSA id et4sm2538240wjd.15.2015.01.15.07.39.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Jan 2015 07:39:23 -0800 (PST) Message-ID: <54B7DF3B.3010003@seld.be> Date: Thu, 15 Jan 2015 15:39:39 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Benjamin Eberlei , =?UTF-8?B?UGF2ZWwgS291xZlpbA==?= CC: PHP internals References: <8DCD1B72-C81D-499E-B455-E4A042CD76E6@ajf.me> <54B7D8AE.5090209@seld.be> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Scalar Type Hints v0.2 From: j.boggiano@seld.be (Jordi Boggiano) On 15/01/2015 15:30, Benjamin Eberlei wrote: > The potential issues with this are pretty real, to be honest. Simple > things like moving a method from one class to another (let's say to > parent or descendant) and getting to another typing context may cause > unpredictable behavior if the user forgets to have declare() in both > files. > > > This alone is a very big argument against it imho. Next argument > would be using different libraries in one file and wanting one of them > to be strict the other not. If you want both you can just use the non-strict default and do type checks yourself where you see fit. If you had strict typing only or weak only you anyway could not choose which library should be strict, each library would decide for you. Cheers -- Jordi Boggiano @seldaek - http://nelm.io/jordi