Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82306 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5694 invoked from network); 9 Feb 2015 18:25:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Feb 2015 18:25:17 -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.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:40327] helo=imap1-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E8/A2-25034-48BF8D45 for ; Mon, 09 Feb 2015 13:25:13 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id B8517B000AB; Mon, 9 Feb 2015 13:25:05 -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 zA7LNJGpH9Ys; Mon, 9 Feb 2015 13:25:05 -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 48885B000A8; Mon, 9 Feb 2015 13:25:03 -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: Mon, 9 Feb 2015 18:25:01 +0000 Cc: Matteo Beccati , PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: <4EF412E9-0F08-4F4A-B7DC-634D6887769E@ajf.me> References: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> <41EBB3A7-4AFC-4A73-B9AA-CD7129ACF9F0@strojny.net> <54D5FB10.1040100@beccati.com> To: Lars Strojny X-Mailer: Apple Mail (2.2070.6) Subject: Re: [PHP-DEV] [VOTE] Scalar Type Hints From: ajf@ajf.me (Andrea Faulds) Hi, > On 9 Feb 2015, at 18:22, Lars Strojny wrote: >=20 >> On 07 Feb 2015, at 12:46, Matteo Beccati wrote: >>=20 >> Maybe it's just me, but I didn't quite understand the point you are = making here. Are you saying that declares are more or less like ini = settings? >=20 > Yes, exactly that. The new declare()-statement will fundamentally = change how the engine behaves It=E2=80=99s a relatively minor change. It changes how arguments and = return values are type-checked, that=E2=80=99s all. The patch isn=E2=80=99= t that complex. > and one will have two learn more or less two flavors of PHP. Hardly, the differences are not that big. One=E2=80=99s slightly = stricter when checking arguments and return values, but that=E2=80=99s = it. It=E2=80=99s not two completely different worlds, it=E2=80=99s a = minor detail of personal preference. > Even worse I am forced to use the PHP flavor the person picked who = changed the declare() statement last. Well, yes, in a project with multiple people, you must conform to the = project style guide and such, that=E2=80=99s hardly unusual. -- Andrea Faulds http://ajf.me/