Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80585 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65749 invoked from network); 15 Jan 2015 19:56:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jan 2015 19:56:06 -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.216 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.216 imap10-3.ox.privateemail.com Received: from [192.64.116.216] ([192.64.116.216:47764] helo=imap10-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0B/B0-61348-55B18B45 for ; Thu, 15 Jan 2015 14:56:06 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 2D08D2400DD; Thu, 15 Jan 2015 14:56:03 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap10.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap10.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id YUtNiOYDYP-G; Thu, 15 Jan 2015 14:56:02 -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 E2F362400C7; Thu, 15 Jan 2015 14:56:00 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: <8BABA306-12CE-4568-98F3-419A1557F61B@ajf.me> Date: Thu, 15 Jan 2015 19:55:58 +0000 Cc: Mike Willbanks , Zeev Suraski , Richard Quadling , Leigh , PHP Internals List Content-Transfer-Encoding: quoted-printable Message-ID: References: <8DCD1B72-C81D-499E-B455-E4A042CD76E6@ajf.me> <4E2073DE-0951-498C-97BB-DDAC094F11FA@ajf.me> <9a033dd1f223f854e760924d118ab812@mail.gmail.com> <2ae0164cb9b9bf1c974d7a3c60af0466@mail.gmail.com> <6105ea99002e634373c09685310e26a6@mail.gmail.com> <8BABA306-12CE-4568-98F3-419A1557F61B@ajf.me> To: Andrey Andreev , marcio3w@gmail.com, "S.A.N" X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] [RFC] Scalar Type Hints v0.2 From: ajf@ajf.me (Andrea Faulds) > On 15 Jan 2015, at 19:52, Andrea Faulds wrote: >=20 > Sure, weak typing is much poorer than strict typing for error = checking. Does that mean the user should be prevented from having the = choice? >=20 > Are you simply opposed to the idea of weak types in general?=20 Another way to put this: Allow a user to shoot themselves in the foot (use weak types) if they = want. Don=E2=80=99t force me to shoot myself in the foot if I don=E2=80=99= t want to (give APIs the choice of weak typing, not the user). -- Andrea Faulds http://ajf.me/