Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83168 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78311 invoked from network); 19 Feb 2015 10:06:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2015 10:06:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=patrick.allaert@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=patrickallaert@php.net; sender-id=unknown Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.47 as permitted sender) X-PHP-List-Original-Sender: patrick.allaert@gmail.com X-Host-Fingerprint: 74.125.82.47 mail-wg0-f47.google.com Received: from [74.125.82.47] ([74.125.82.47:34845] helo=mail-wg0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 43/08-22021-1C5B5E45 for ; Thu, 19 Feb 2015 05:06:57 -0500 Received: by mail-wg0-f47.google.com with SMTP id x12so6209114wgg.6 for ; Thu, 19 Feb 2015 02:06:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:references:from:date:message-id:subject:to:cc :content-type; bh=4iQg4EjNVBnxwu0exRPBikTEAx4wN2SxCGEsGJkiCWw=; b=RAOtEyHgFOpcbhnlLTsw/XpuxdHVLXw5qzuX6euClAr8B6JBW7hPWUq05KOZqybTEQ NvCfUPgldo5cVuQHuTn6PSroKfYZjGn2JMCboHZtzYX/JRQpu6ZiYIJMweCGuWnomgZP ay9loM7mebIP00jArBE5gNkX+vMFpOXCNbdNVzJq+A999d8rYhs8WQa51RqFGnx1+GJQ I07QNBI43Lk1faT50J0mwj1LT36dNE7zyRqTpMW4xHANSQi+hPBoiY/7BtGNswLGpy3D V4nc2I6fLCKPbNl0uS4Eo2C7DJdWaOlyZd1VUqFEqPwHjdn5sKFoN9+veZjupj4YDjVW H0ew== X-Received: by 10.180.211.206 with SMTP id ne14mr13286567wic.79.1424340414423; Thu, 19 Feb 2015 02:06:54 -0800 (PST) MIME-Version: 1.0 References: <03aa01d04bd3$f8330420$e8990c60$@php.net> Date: Thu, 19 Feb 2015 10:06:53 +0000 Message-ID: To: francois@php.net, Sara Golemon Cc: PHP internals Content-Type: multipart/alternative; boundary=001a11c37d4470ea26050f6e188d Subject: Re: [PHP-DEV] Scalar Type Hints v0.4 From: patrickallaert@php.net (Patrick ALLAERT) --001a11c37d4470ea26050f6e188d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Le Thu Feb 19 2015 at 00:38:25, Fran=C3=A7ois Laupretre = a =C3=A9crit : > > > Why can't strictness follow that path? > > Because strictness is not the overall objective the PHP language is aimin= g > to. I cannot agree more with that. > If it was the case, your mechanism would be fine, but deprecating ZPP > conversion would be simpler and fine too. I'm not so sure about the "simpler". > This is definitely not the same case as generating a notice on array to > string. > Sure, I just wanted to pinpoint that "because strictness is not the overall objective of the PHP language", we may consider a weak approach accompanied by an activable (configurable?) mechanism that would notices us of bad types, bad coercion, conversion with loss,... > That's what I hate in this 'weak' vs 'strict' terminology. It makes > implicit that 'strict' is the natural future and improvement of 'weak'. > That's absolutely not the case as 'weak' mode is not as negative as name > suggests, and 'strict' is not so positive either. So, you may stop > considering that the natural path for 'weak'-typed software is to migrate > to strict types. > I never implied something like this, quite the opposite since I feel I am completely aligned with you! > When we decide encouraging migrating to strict mode with a deprecation on > ZPP conversion, I hope I'll be far away... > +1 > > PS: your feedback makes me feel it would be; even more; a viable option > :) > > Fine. But may I remind you the so-called great benefit you underlined in > your post is totally wrong and shows total ignorance of the difference > between casting and ZPP conversion rules which, IMO, is a fundamental > pre-requisite before laughing at people working on this. > I never laughed at any one here. Sorry if someone felt that way by the simple use of a smiley. --001a11c37d4470ea26050f6e188d--