Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82114 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8001 invoked from network); 8 Feb 2015 05:21:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Feb 2015 05:21:25 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.41 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.41 mail-pa0-f41.google.com Received: from [209.85.220.41] ([209.85.220.41:42837] helo=mail-pa0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 71/E5-07765-352F6D45 for ; Sun, 08 Feb 2015 00:21:25 -0500 Received: by mail-pa0-f41.google.com with SMTP id kx10so2032198pab.0 for ; Sat, 07 Feb 2015 21:21:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=VAGHehz89mypeD8PRaSbuxROH+uVpvbZXgvOf3s9fF8=; b=w695V0l1WI/NTCuM7teNPld//m5ST6/umXZeTEeyV1qYTyvTYdDEJoUcImI4C0J2M8 YGJ1f16VrcGcokqgKCDJo/WJJBsPvMy0NfN2qxy4CSdtR0QEEraTFALkLYkMvSDIa0v6 H1HFxy8NNQGqH1VYAtMouwQjOmccLMcSEJzeLxNfI7Bx/QeQJConNaWiFdlx/kV+n6S1 N57Wo2qBfegvqzNgPFGw+2tMtyPqN1uydaWRK6Eqh0z89S/PyWjbDxFEGRWaFrNt3Klz kPVcYZ60EkYUPbLEHrrLoTwkZLxilLL7n73b6dZrc+t0usGi1EbaHPk6J9UAKcfH8yPv ItVA== X-Received: by 10.66.129.139 with SMTP id nw11mr18585336pab.69.1423372880567; Sat, 07 Feb 2015 21:21:20 -0800 (PST) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id c17sm12528028pdl.6.2015.02.07.21.21.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Feb 2015 21:21:19 -0800 (PST) Message-ID: <54D6F23F.1060405@gmail.com> Date: Sat, 07 Feb 2015 21:21:03 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Andrea Faulds , =?UTF-8?B?UGF2ZWwgS291xZlpbA==?= CC: PHP Internals References: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> <9E1C2427-0295-4F3E-BD29-04DA84321067@ajf.me> In-Reply-To: <9E1C2427-0295-4F3E-BD29-04DA84321067@ajf.me> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [VOTE] Scalar Type Hints From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > I don’t think it’s unfair. There’s a limited set of permitted > conversions in some strictly-typed languages, but it’s still > strictly-typed. The main problem with strict typing as it is being proposed by strictness proponents is exactly that - there's no limited set permitted. It leads to absurd limitations like 1 not accepted where a float value is required, or where a boolean value is required. That's the essential problem with this proposal - it sacrifices the frequent use cases that make sense to nearly everybody for abstract bondage-and-discipline notion under misguided assumption that it would be a service to the users. In fact, if forced to use this API, people would probably just learn to do (float) each time they call such function, which makes them just do more work for something they could have - and already do have, in internal functions - for free. -- Stas Malyshev smalyshev@gmail.com