Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81600 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57181 invoked from network); 2 Feb 2015 16:35:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Feb 2015 16:35:38 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:56184] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B8/74-34915-857AFC45 for ; Mon, 02 Feb 2015 11:35:38 -0500 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id C73AAE202D; Mon, 2 Feb 2015 16:35:33 +0000 (GMT) Date: Mon, 2 Feb 2015 16:35:33 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: Dmitry Stogov cc: Andrea Faulds , PHP Internals List In-Reply-To: Message-ID: References: <8DCD1B72-C81D-499E-B455-E4A042CD76E6@ajf.me> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] [RFC] Scalar Type Hints v0.2 From: derick@php.net (Derick Rethans) On Mon, 2 Feb 2015, Dmitry Stogov wrote: > As I already told, in my opinion, version 0.1 was the perfect solution that > fit into PHP semantic very well. > > declare(strict_types=1); - is really weird solution. > It changes type hinting behavior per file scope, so, just to try strict > type hinting in a big project, people will have to change every single PHP > file. THis is why I believe it makes more sense to have this switch on the callee side, instead of on the calling side. cheers, Derick