Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81735 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56745 invoked from network); 3 Feb 2015 20:13:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2015 20:13:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.51 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.192.51 mail-qg0-f51.google.com Received: from [209.85.192.51] ([209.85.192.51:37302] helo=mail-qg0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D5/97-20608-7FB21D45 for ; Tue, 03 Feb 2015 15:13:43 -0500 Received: by mail-qg0-f51.google.com with SMTP id z107so54122517qgd.10 for ; Tue, 03 Feb 2015 12:13:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=gX8wHhSszyri7tf2dURN1w/1WbvFNLcbptwIRpEt85E=; b=ZjrJcpdQEgqFbqzmN4NBjGSmzG9wTZxWy1+XOt8kjsZKXDsE0pdm4aETPMmFyZMLH0 pXRdmS49qxdUZWSv92te5mFFme2Xd56zl4GahLbBC8aBW3U2IhoxslUcejNwIXivlURM g0ngloCJqh9AujnqV3Zk6nsbukW/8/pz/ZIoBBA0xZqZIjdNTqjPIl7n5Vxm3kxYvuWG 9F5um1tSt49h3X8OUXRcllVLHpzJ7Fot68HGsWRTMiv4KMYJ0n2iYS1wtZSRpsIv2e1o TUL92MqFtLEoCPbGirPgwVTaNobusslfaKPWkMljSMzI4qyLsDCKTNbnvQXT2TIt0GOD mc5w== X-Received: by 10.140.90.112 with SMTP id w103mr49462571qgd.65.1422994420256; Tue, 03 Feb 2015 12:13:40 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.28.72 with HTTP; Tue, 3 Feb 2015 12:12:59 -0800 (PST) In-Reply-To: References: Date: Wed, 4 Feb 2015 05:12:59 +0900 X-Google-Sender-Auth: yffoujOl4zCjbI5kE-6Bvm5yLI8 Message-ID: To: Dmitry Stogov Cc: PHP Internals , Andrea Faulds , Nikita Popov Content-Type: multipart/alternative; boundary=001a11c11a98efd984050e34b4ae Subject: Re: [PHP-DEV] What do we need strict scalar type hints for? From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11c11a98efd984050e34b4ae Content-Type: text/plain; charset=UTF-8 Hi Dmitry, On Mon, Feb 2, 2015 at 6:12 PM, Dmitry Stogov wrote: > could you please write down few use cases, when strict scalar type hints > are really useful. > I'm not opposing to have scalar type hints, but assertion can do better job for it. I think you have proposed assert() w/o runtime overhead. Is this included in PHP7? Enable by opcache, perhaps? Sorry for OT. I'm curious. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11c11a98efd984050e34b4ae--