Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80574 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39250 invoked from network); 15 Jan 2015 17:02:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jan 2015 17:02:11 -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.207 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.207 imap2-2.ox.privateemail.com Received: from [192.64.116.207] ([192.64.116.207:35225] helo=imap2-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 81/01-34371-292F7B45 for ; Thu, 15 Jan 2015 12:02:11 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 1B56D8C0085; Thu, 15 Jan 2015 12:02:07 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap2.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap2.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WZfJXj_pQU8p; Thu, 15 Jan 2015 12:02:06 -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 697288C0080; Thu, 15 Jan 2015 12:02:06 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: Date: Thu, 15 Jan 2015 17:02:03 +0000 Cc: PHP Internals List Content-Transfer-Encoding: quoted-printable Message-ID: <37741DC2-0FF4-42C4-A07E-266EDC4E465D@ajf.me> References: <8DCD1B72-C81D-499E-B455-E4A042CD76E6@ajf.me> To: Matthew Leverton X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] [RFC] Scalar Type Hints v0.2 From: ajf@ajf.me (Andrea Faulds) Hi Matthew, > On 15 Jan 2015, at 16:59, Matthew Leverton wrote: >=20 > I don't like this at all. I'd prefer raising a new warning type (e.g., > E_AUTOCAST) over this. That error type would cause absolute chaos, unless people decided not to = make use of it. Custom error handlers are global and affect all code, = including in libraries. I can=E2=80=99t see how this would be even slightly useful. > Does the voting system support instant-runoffs? If people could rate > their preferences of: >=20 > 1) strict scalar types > 2) weak scalar types (auto cast) > 3) both - different syntaxes. e.g, (int) $foo vs int $foo > 4) no scalar types >=20 > we could reach a compromised consensus without some building > Frankenstein. I don=E2=80=99t think supporting both approaches is really a = =E2=80=9CFrankenstein=E2=80=9D. It would work out quite cleanly in = practice. I had considered holding multiple votes, but I decided against it. Thanks. -- Andrea Faulds http://ajf.me/