Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79060 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48259 invoked from network); 21 Nov 2014 02:08:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Nov 2014 02:08:14 -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.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:50547] helo=imap1-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C5/82-32541-E8E9E645 for ; Thu, 20 Nov 2014 21:08:14 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 54C73B0008B; Thu, 20 Nov 2014 21:08:11 -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 l5OIlI3cOrqV; Thu, 20 Nov 2014 21:08:11 -0500 (EST) Received: from oa-res-27-210.wireless.abdn.ac.uk (oa-res-27-210.wireless.abdn.ac.uk [137.50.27.210]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id EA9B3B0008A; Thu, 20 Nov 2014 21:08:09 -0500 (EST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: Date: Fri, 21 Nov 2014 02:08:08 +0000 Cc: David Muir , Adam Harvey , Levi Morrison , PHP Internals Content-Transfer-Encoding: 7bit Message-ID: References: <3A69F0F5-C5FE-415D-A894-193D9F146854@gmail.com> To: marcio3w@gmail.com X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] [VOTE][RFC] Safe Casting Functions From: ajf@ajf.me (Andrea Faulds) > On 21 Nov 2014, at 01:48, Marcio Almada wrote: > >> Not a voter, but I don't really see the usefulness of this in core either. > > True. This could be on packagist or a php ext, but should not be in > core. Main problem is that it carries too much ambiguity between > validation and coercion while doesn't solve the real problem: strict > typing. I would argue these are a necessary prerequisite to strict typing. -- Andrea Faulds http://ajf.me/