Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81624 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99319 invoked from network); 2 Feb 2015 18:05:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Feb 2015 18:05:10 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.42 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.42 mail-qa0-f42.google.com Received: from [209.85.216.42] ([209.85.216.42:38121] helo=mail-qa0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4B/DD-34915-45CBFC45 for ; Mon, 02 Feb 2015 13:05:09 -0500 Received: by mail-qa0-f42.google.com with SMTP id dc16so30255674qab.1 for ; Mon, 02 Feb 2015 10:05:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/LdYejTbRBAQZkXfLFKxgumn964YgrmKKuu8mxBrI2E=; b=lTKnN9ovi9Aa81mEnn3HXLUMLT/uUo/fjd9bheAdUcsQGdaFN8K2v+DLjY4EMy9MZN i7GX5ts/GXPcrrBefsL3dI/RRb9nte3GdGQkOAmwy7PwdrQBqAwIjxqHBbk11MLLADbR cDeOr5CCpoHdMastWJGg/y2Ev4LFQ3Cbv//zspeP6DLuqtZwaKCQJF/6SZmVy9rCFk7j NnkFEzktQHNX5pc3z2PRVDRRoN5HAmpMZqpS9PQySJZNTfB/ZHcpYbzzVIHY73ve5HVA 5i/L3UFYAiQK8djXvN8TLGRrlmtN8ORy2dvzF477EdVJywfAnJXL3lN+7grRDt8Mgckn E9SQ== MIME-Version: 1.0 X-Received: by 10.224.24.132 with SMTP id v4mr44741215qab.17.1422900306169; Mon, 02 Feb 2015 10:05:06 -0800 (PST) Received: by 10.96.3.168 with HTTP; Mon, 2 Feb 2015 10:05:05 -0800 (PST) In-Reply-To: References: Date: Tue, 3 Feb 2015 01:05:05 +0700 Message-ID: To: Dmitry Stogov Cc: PHP Internals , Andrea Faulds , Nikita Popov Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] What do we need strict scalar type hints for? From: pierre.php@gmail.com (Pierre Joye) hi, On Mon, Feb 2, 2015 at 4:12 PM, Dmitry Stogov wrote: > hi, > > could you please write down few use cases, when strict scalar type hints > are really useful. I think there is one big misunderstanding in Andrea's RFC. Strictness is local only. Or to say it in a better way, only the maintainers of a given library will bother with it. Users of this library do not, there will be no change there from what we had in the 1st rfc. Or they can if they want. 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. -- Pierre @pierrejoye | http://www.libgd.org