Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80499 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70231 invoked from network); 14 Jan 2015 22:31:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jan 2015 22:31:25 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.199 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.199 imap11-2.ox.privateemail.com Received: from [192.64.116.199] ([192.64.116.199:50227] helo=imap11-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0F/B0-00659-D3EE6B45 for ; Wed, 14 Jan 2015 17:31:25 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id CEF838800E5; Wed, 14 Jan 2015 17:31:21 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap11.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap11.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id tyo3eVunrsEb; Wed, 14 Jan 2015 17:31:21 -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 DFEAB8800DA; Wed, 14 Jan 2015 17:31:20 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: <54B68F0A.4090707@gmail.com> Date: Wed, 14 Jan 2015 22:31:18 +0000 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <1B61434B-5293-4368-83BC-D6068398E62F@ajf.me> References: <8DCD1B72-C81D-499E-B455-E4A042CD76E6@ajf.me> <4E2073DE-0951-498C-97BB-DDAC094F11FA@ajf.me> <54B6402B.1020401@nunninger.info> <77C73BB0-C124-47EC-81AB-ADDE6DAB1C60@ajf.me> <54B66945.2070000@nunninger.info> <54B68F0A.4090707@gmail.com> To: Rowan Collins X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] [RFC] Scalar Type Hints v0.2 From: ajf@ajf.me (Andrea Faulds) Hi Rowan, > On 14 Jan 2015, at 15:45, Rowan Collins = wrote: >=20 > Perhaps it would be clearer if the RFC (and the documentation, if this = is accepted) referred to the non-strict as something other than "weak". = It makes it sound like only a weak check will be performed, and some = values of the "wrong" type will be allowed through, when in reality you = will always get exactly the type asked for. >=20 > Maybe "coercive type-checking" would more accurately reflect the = functionality? Yeah, that=E2=80=99s an issue I=E2=80=99m aware of, =E2=80=9Ctype = checking" would suggest it merely =E2=80=9Cchecks=E2=80=9D, but it = actually has the same implicit conversion behaviour used by extension = and built-in PHP functions. I=E2=80=99m not sure what to call it. I = don=E2=80=99t really think =E2=80=9Ccoercive type-checking=E2=80=9D is = particularly better. Anyone who has a suggestion for a name, please feel free to offer it. Thanks. -- Andrea Faulds http://ajf.me/