Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81786 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62623 invoked from network); 4 Feb 2015 09:02:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Feb 2015 09:02:55 -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.216.50 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.216.50 mail-qa0-f50.google.com Received: from [209.85.216.50] ([209.85.216.50:35180] helo=mail-qa0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1C/81-55046-E30E1D45 for ; Wed, 04 Feb 2015 04:02:54 -0500 Received: by mail-qa0-f50.google.com with SMTP id k15so222998qaq.9 for ; Wed, 04 Feb 2015 01:02:52 -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=DknzxxLVt+VWW8f/HdlWFzg3Uv8c4AhQV3guN8yzcVA=; b=NSJ3xnYmcA1XqOafhzRMlqa52xTYWBbE2QTUFAsYB8ieNEwifOQ0QXCmBGU0f9Px1N Iop6z+Iui3ke4ccA6V60ns/gzfVPtGzgynKoq+pI8YgNe8q0jz/k52+ujgGxoukmwA9F 94qLmTtUMpx+Plp2cHnwHzhoiRyVt0DWC9pa3tUi2Bz/lhsVJE97UA/sWMfJ5Fig51pU e7c2V84Wg0UPcGG8CQlGJeJgTivJnY+0sTTLFSYllEmgcDbauo0vPoByRgtLiv+raPK9 0eaSC8Yx8Ay2v0EK5lk+GzbW/ogPSXhMb+IwBf70PlcCwTORmH0q9ufsE2JjzA2jPILP JNSA== X-Received: by 10.140.21.229 with SMTP id 92mr59293670qgl.33.1423040572275; Wed, 04 Feb 2015 01:02:52 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.28.72 with HTTP; Wed, 4 Feb 2015 01:02:12 -0800 (PST) In-Reply-To: References: <00c101d04049$ca411ec0$5ec35c40$@tekwire.net> Date: Wed, 4 Feb 2015 18:02:12 +0900 X-Google-Sender-Auth: ROEwv7DZI9XED7q_V2qmLGAl4Fk Message-ID: To: Dmitry Stogov Cc: =?UTF-8?Q?Fran=C3=A7ois_Laupretre?= , Joe Watkins , PHP Internals , Andrea Faulds , Nikita Popov Content-Type: multipart/alternative; boundary=001a11c12f8ccfc3aa050e3f7340 Subject: Re: [PHP-DEV] What do we need strict scalar type hints for? From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11c12f8ccfc3aa050e3f7340 Content-Type: text/plain; charset=UTF-8 Hi Dmitry, On Wed, Feb 4, 2015 at 4:25 PM, Dmitry Stogov wrote: > The idea of that RFC was an ability to have zero-cost assert(). > > DbC is a much more bigger feature, it is interesting, but requires > significant work. Type check and DbC integration would require significant work, I guess. If you say so, it is. How about simple in{}, out{} block? I expect it's much simpler. Injecting in{} and out{} block code to before/after execute() something like this. If execute() is replaceable as before, then we may have two execute() for production and development. There will be zero performance cost hopefully. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11c12f8ccfc3aa050e3f7340--