Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88273 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77131 invoked from network); 16 Sep 2015 23:23:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Sep 2015 23:23:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.51 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.51 mail-pa0-f51.google.com Received: from [209.85.220.51] ([209.85.220.51:34180] helo=mail-pa0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 84/07-41443-AF9F9F55 for ; Wed, 16 Sep 2015 19:23:38 -0400 Received: by padhy16 with SMTP id hy16so1631798pad.1 for ; Wed, 16 Sep 2015 16:23:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=g6LTdNViupjZq1y5NYVLt5Lq5B1UX5urPpFWGrbs/iE=; b=dp21/Y5Jpd/Q5I8vkjPfWNc1znEGOlvu7RgRN6oXV/+hHm8Ev6ZIXzPFpfT45vYeOV 5nzyW94ptFW8/VwepfKMeHPSc0GJ4FANlJHpyccn3cxyLuMaePs8cHl0Z6Zb7BG7s/cr 5DDHdJcnGm5aaCtacN777/9aHhp1a1tFR+zbcyyD58grnw/sdlYIKMI1fQxRnQObVE65 6mUg6mzBnm/1Ly/4klGnIrCT7Cbm2cErK/PmoIa1cW84bE6EVlLvLjqhga/Fp2167p+8 KGHcLufK4c0PAXnBveANbitxyKhXwKAXDSeWVhEYlwK0QiHrGm7E7o3Suibbb7hovFuO nSxQ== X-Received: by 10.66.148.71 with SMTP id tq7mr65027654pab.0.1442445815234; Wed, 16 Sep 2015 16:23:35 -0700 (PDT) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by smtp.gmail.com with ESMTPSA id em1sm249542pbd.42.2015.09.16.16.23.34 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Sep 2015 16:23:34 -0700 (PDT) To: Yasuo Ohgaki , "internals@lists.php.net" References: Message-ID: <55F9F9F5.3010501@gmail.com> Date: Wed, 16 Sep 2015 16:23:33 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Make strict mode more strict? From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > PHP 7 has strict_types mode for function parameters/return values and > these are binded to certain type strictly. > https://wiki.php.net/rfc/scalar_type_hints_v5 > > Why not make strict_types mode more strict? What you are proposing is not making strict_mode more strict, it is full variable typing, and should be considered as such. I personally do not think PHP needs that, but at least if it is discussed then it should be discussed with proper understanding what it is. -- Stas Malyshev smalyshev@gmail.com