Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85157 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22794 invoked from network); 17 Mar 2015 23:53:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Mar 2015 23:53:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=andre.romcke@ez.no; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=andre.romcke@ez.no; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ez.no designates 157.56.112.107 as permitted sender) X-PHP-List-Original-Sender: andre.romcke@ez.no X-Host-Fingerprint: 157.56.112.107 mail-am1on0107.outbound.protection.outlook.com Received: from [157.56.112.107] ([157.56.112.107:17760] helo=emea01-am1-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D4/20-20523-38EB8055 for ; Tue, 17 Mar 2015 18:53:39 -0500 Received: from AM3PR07MB386.eurprd07.prod.outlook.com (10.242.111.12) by AM3PR07MB387.eurprd07.prod.outlook.com (10.242.111.16) with Microsoft SMTP Server (TLS) id 15.1.112.19; Tue, 17 Mar 2015 23:53:35 +0000 Received: from AM3PR07MB386.eurprd07.prod.outlook.com ([10.242.111.12]) by AM3PR07MB386.eurprd07.prod.outlook.com ([10.242.111.12]) with mapi id 15.01.0112.000; Tue, 17 Mar 2015 23:53:35 +0000 To: Leigh , Lester Caine CC: PHP Internals List Thread-Topic: [PHP-DEV] [RFC][Accepted] Scalar Type Declarations V0.5 Thread-Index: AQHQYCy6J3HXOe26D0+UirydXppeFJ0f+goAgABg6YCAAI13gIAAcmGA Date: Tue, 17 Mar 2015 23:53:35 +0000 Message-ID: References: <55079692.6050405@gmail.com> <5507E7DD.3010908@lsces.co.uk> In-Reply-To: Accept-Language: nb-NO, de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2.3.59.117] authentication-results: gmail.com; dkim=none (message not signed) header.d=none; x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM3PR07MB387; x-forefront-antispam-report: BMV:1;SFV:NSPM;SFS:(10019020)(6009001)(51704005)(24454002)(40100003)(76176999)(36756003)(54356999)(86362001)(66066001)(2950100001)(92566002)(50986999)(122556002)(77096005)(2900100001)(106116001)(74482002)(46102003)(83716003)(1720100001)(62966003)(15975445007)(87936001)(77156002)(33656002)(19580405001)(19580395003)(2656002)(102836002)(82746002)(104396002);DIR:OUT;SFP:1102;SCL:1;SRVR:AM3PR07MB387;H:AM3PR07MB386.eurprd07.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(5002010)(5005006);SRVR:AM3PR07MB387;BCL:0;PCL:0;RULEID:;SRVR:AM3PR07MB387; x-forefront-prvs: 0518EEFB48 Content-Type: text/plain; charset="iso-8859-1" Content-ID: <22B3D984411B0342AC65A518B1BA24C2@eurprd07.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: ez.no X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Mar 2015 23:53:35.3274 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f606c019-4e72-4e2e-8583-51197302e349 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR07MB387 Subject: Re: [PHP-DEV] [RFC][Accepted] Scalar Type Declarations V0.5 From: andre.romcke@ez.no (=?iso-8859-1?Q?Andr=E9_R=F8mcke?=) > On Mar 17, 2015, at 18:04 , Leigh wrote: >=20 > On 17 March 2015 at 08:37, Lester Caine wrote: >=20 >> To help towards that end, can someone who understands what is wanted >> from the weak type hint mode actually produce a summary of that as it is >> very difficult to extract just what has now been agreed for that area of >> type hinting. A base that can be used to review some of the other >> discussions to put that to bed. Others might appreciate a similar >> summary of the 'type_error' mode as well? As a base for the >> documentation on the user manual updates? >=20 >=20 > Not sure what is "difficult to extract" >=20 > https://wiki.php.net/rfc/scalar_type_hints_v5#behaviour_of_weak_type_chec= ks >=20 > It's all right there... That part answers what has been agreed (or rather accepted), but not who th= e weak mode is for, and why. Tried to sum that up last week when there was still discussions on this: http://share.ez.no/blogs/core-development-team/php-7-sth-from-user-perspect= ive TL;DR; weak mode is for api consumers, aka normal php users, while strict = is for the actual target users of this features: api (library/framework) crea= tors. Post also argues for why Zeev's adjustments to weak sth handling should sti= ll be done, as well as arguing for disallowing/fixing closure hint in strict m= ode. ar=