Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81851 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35019 invoked from network); 5 Feb 2015 00:58:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2015 00:58:16 -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.192.173 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.173 mail-pd0-f173.google.com Received: from [209.85.192.173] ([209.85.192.173:40237] helo=mail-pd0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AD/90-40930-720C2D45 for ; Wed, 04 Feb 2015 19:58:16 -0500 Received: by pdjy10 with SMTP id y10so4136433pdj.7 for ; Wed, 04 Feb 2015 16:58:13 -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=BDHlz12gTh8b1RQwR92osNzVgkvjo0gFjNE1NPTDj9U=; b=zq6Nxplp2cpkRADg1KzVrdheRnfQMjFvB58t/pYPCmF4YhGjN6uYLAXkq8It2PskGe ZTjLzYkp8Qcg5qJdbBSHNL+r3Tf4wZ3+habHEbw7oNfKlcCD58pYdoqiN3rnPBc6Ns21 tRgMPKMbmjLYX4e54GpxzsQyLRhLVjOZr5lbyZxXfNmwVfHpxSZruku4pdOFVJEcFF32 G6YAP+rpcvAepbP/zklogA2mBpVPsrWiaZBYy3dGE+7xRkCEB8qpDOt087aamSHb+Nd/ XuB+ksYcIMnUjviH88PouzEi6HXOHmZBUGr/r00gG2kO4Dgar2qN+F5tvluRN3IuIFzs K7ZA== X-Received: by 10.70.22.169 with SMTP id e9mr910300pdf.162.1423097893119; Wed, 04 Feb 2015 16:58:13 -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 xw1sm3221819pac.47.2015.02.04.16.58.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Feb 2015 16:58:12 -0800 (PST) Message-ID: <54D2C018.6050803@gmail.com> Date: Wed, 04 Feb 2015 16:58:00 -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: Andrey Andreev CC: Sebastian Bergmann , "internals@lists.php.net" References: <00c101d04049$ca411ec0$5ec35c40$@tekwire.net> <54D1CA7C.8060204@php.net> <54D1E6EC.7060702@php.net> <54D2B3FA.6020900@gmail.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] What do we need strict scalar type hints for? From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > Adding another concept, not changing the existing ones. And really, > it's just simplifying what is already present via is_() > runtime checks, making our lives a little bit easier. There's a very big difference between allowing to check types (and then do whatever you wish) and having functions throw fatal errors if types do not match. -- Stas Malyshev smalyshev@gmail.com