Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81651 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44993 invoked from network); 2 Feb 2015 20:46:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Feb 2015 20:46:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.200 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.200 imap1-2.ox.privateemail.com Received: from [192.64.116.200] ([192.64.116.200:36539] helo=imap1-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B7/24-25089-C12EFC45 for ; Mon, 02 Feb 2015 15:46:21 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 75681B00085; Mon, 2 Feb 2015 15:46:17 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap1.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap1.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id eht8AUJW0zxg; Mon, 2 Feb 2015 15:46:17 -0500 (EST) Received: from oa-res-26-240.wireless.abdn.ac.uk (oa-res-26-240.wireless.abdn.ac.uk [137.50.26.240]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id D2D02B0008F; Mon, 2 Feb 2015 15:46:15 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) In-Reply-To: Date: Mon, 2 Feb 2015 20:46:13 +0000 Cc: Robert Stoll , PHP Internals , Nikita Popov Content-Transfer-Encoding: quoted-printable Message-ID: <9B25956B-9B28-4EBC-B391-590A46D93BD9@ajf.me> References: <003d01d03f17$e1c16510$a5442f30$@tutteli.ch> <005001d03f23$0a3253a0$1e96fae0$@tutteli.ch> To: Dmitry Stogov X-Mailer: Apple Mail (2.2070.6) Subject: Re: [PHP-DEV] What do we need strict scalar type hints for? From: ajf@ajf.me (Andrea Faulds) Hi Dmitry, > On 2 Feb 2015, at 20:43, Dmitry Stogov wrote: >=20 > I don't think we will implement strict semantic for operators. > It's not going to be PHP anymore.... > $s =3D (string)$a . (string)$b; There=E2=80=99s no need either: operators always produce a specific type = (or one of a set of types) so it doesn=E2=80=99t really cause a problem. Though there are some improvements we could make. It=E2=80=99d be nice = if =E2=80=98=E2=80=99 + 1 produced a notice, that=E2=80=99s caught me = out several times before. Thanks. -- Andrea Faulds http://ajf.me/