Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81629 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10080 invoked from network); 2 Feb 2015 19:09:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Feb 2015 19:09:00 -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.208 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.208 imap2-3.ox.privateemail.com Received: from [192.64.116.208] ([192.64.116.208:46217] helo=imap2-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 75/CF-34915-B4BCFC45 for ; Mon, 02 Feb 2015 14:09:00 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 447338C0069; Mon, 2 Feb 2015 14:08:56 -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 ZwmZ8EMoKQyX; Mon, 2 Feb 2015 14:08:55 -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 B900D8C0057; Mon, 2 Feb 2015 14:08:54 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) In-Reply-To: <54CFC849.3080001@gmail.com> Date: Mon, 2 Feb 2015 19:08:52 +0000 Cc: Pierre Joye , Dmitry Stogov , PHP Internals , Nikita Popov Content-Transfer-Encoding: quoted-printable Message-ID: <1C7877DD-1FCC-463C-AECF-C767EE1256F7@ajf.me> References: <54CFC849.3080001@gmail.com> To: Stanislav Malyshev X-Mailer: Apple Mail (2.2070.6) Subject: Re: [PHP-DEV] What do we need strict scalar type hints for? From: ajf@ajf.me (Andrea Faulds) Hi Stas, > On 2 Feb 2015, at 18:56, Stanislav Malyshev = wrote: >=20 > Hi! >=20 >> Keeping that in mind, the declare statement, as ugly as it may look, >> could be actually a killer to finally get what both camps want but >> never (and never will) manage to agree. >=20 > I think having two conceptual frameworks in one language and having to > deal with (and potentially maintain) code bases with mixed conceptual > framework is a very bad idea. That would lead to a language > fragmentation as strict code will become hard to combine with = non-strict > code within one application, and pretty soon people will start asking > questions like "is this library written in strict-PHP or = non-strict-PHP? > ow, dang, we can't use it because we use the other one=E2=80=A6" I don=E2=80=99t see how. This proposal has been specifically designed to = allow strict and non-strict code to be completely interoperable. -- Andrea Faulds http://ajf.me/