Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82184 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69824 invoked from network); 8 Feb 2015 22:44:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Feb 2015 22:44:46 -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:35501] helo=imap11-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3B/58-26926-BD6E7D45 for ; Sun, 08 Feb 2015 17:44:45 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id EAD6D8800E5; Sun, 8 Feb 2015 17:44:40 -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 GEq8-IJc3pJj; Sun, 8 Feb 2015 17:44:40 -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 CCACA8800DA; Sun, 8 Feb 2015 17:44:39 -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: Sun, 8 Feb 2015 22:44:34 +0000 Cc: PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: <9B296579-52CA-4C7D-8D35-916D8DCA08A7@ajf.me> References: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> To: Ferenc Kovacs X-Mailer: Apple Mail (2.2070.6) Subject: Re: [PHP-DEV] [VOTE] Scalar Type Hints From: ajf@ajf.me (Andrea Faulds) Hi Ferenc, > On 8 Feb 2015, at 22:18, Ferenc Kovacs wrote: >=20 > I've voted no for two reasons: > 1, I don't really like the the proposed declare solution, I know that = you put much thought and effort with finding a way to make the strict = hints opt-in for the caller, but I think it is still not a good = compromise: people in favor of strict hints will hate it because it is = opt-in from the caller, so they can't use scalar hints to save the = boilerplate for argument validation Hmm. Personally, I don=E2=80=99t think types are really a substitute for = argument validation. This doesn=E2=80=99t provide a means to force = strict types upon people who don=E2=80=99t want them, sure=E2=80=A6 but = the proposal is designed precisely to prevent that, since I don=E2=80=99t = see someone like Zeev (say) wanting to deal with strict types any time = soon.=20 > , and other people like me will unlike it because they think that the = blockless declare will cause many errors and debugging headache when = somebody moves some code between files (or concatenating files as part = of their deployment process). It=E2=80=99s worth noting that I intend to change this to have the = =E2=80=9C 2, As this is a really polarizing topic I would like if the eventual = solution would have wider support from the current php-src regular = contributors, and not just pushed through by "force". (And I know that = status quo sucks when somebody trying to do innovative stuff, but it is = a safe thing to default to). I=E2=80=99m not sure. There are some people completely opposed to = compromise, that can=E2=80=99t be helped. For everyone else, I=E2=80=99m = not sure how I feel about contentious votes. If it gets through by a 2/3 = majority then presumably it does have significant support, though I = worry about lasting impact. Votes do, at least, provide a way to resolve contentious issues, though. > Thanks for your efforts on such a hard topic and I hope you can = eventually succeed where everyone else failed thus far! Thanks. -- Andrea Faulds http://ajf.me/