Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81760 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19030 invoked from network); 4 Feb 2015 05:36:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Feb 2015 05:36:33 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.220.170 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.170 mail-vc0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:43531] helo=mail-vc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FC/32-20608-1EFA1D45 for ; Wed, 04 Feb 2015 00:36:33 -0500 Received: by mail-vc0-f170.google.com with SMTP id kv7so18438381vcb.1 for ; Tue, 03 Feb 2015 21:36:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=UXdfDN64w0/Vfv7eCw21sT63TQJhD+wllEVhfArmMww=; b=Vp7uZ5/kR3PraH7ReOxe3mqd8pp+xiAysFij3G9DGnOVaY8OyF8fNuXi5ljQ5cjbXq iWhaJIGhDVBdgY/CzvEEH8rNV6xgHjJrLkkCnqtBGUYKLhD2wpY2yxFIS1ekGshKQQJv jmVRF7oiYEfBZprkpUTFjiCcI1j5dtXeoBsN5c7t7FGNS0X08kG31lDOEJEO76SH+r+M qxc8Ad1ofAxw6deozd0rAc/92agxgt3qgvG0j15tlU3YSHjkuB0Bl//p/b515CUdoxSZ HbaOIWgtnZI/cW327VXhUD64zUwKqrbapOMV6rb5hKCVQeKgZBdSxFGrgA7Ml4uKJxy7 w5pA== X-Gm-Message-State: ALoCoQmsQuhCTJuSMt87WF5yjnhw8fKGOv0VpcBUTTMwXUhlbUKtYWVnX07yKw+roZuClb2rtlpJXoPE4Rr2qScqvASrXzUzqya1Jva4/WPX3yPTEOvzy2dHFISdxEA9wHLIgRGeRO/HXiJS9nWu1bw76qCrzAjXLg== MIME-Version: 1.0 X-Received: by 10.221.2.197 with SMTP id nv5mr18751043vcb.53.1423028190281; Tue, 03 Feb 2015 21:36:30 -0800 (PST) Received: by 10.52.74.73 with HTTP; Tue, 3 Feb 2015 21:36:30 -0800 (PST) In-Reply-To: References: Date: Wed, 4 Feb 2015 09:36:30 +0400 Message-ID: To: Yasuo Ohgaki , Joe Watkins Cc: PHP Internals , Andrea Faulds , Nikita Popov Content-Type: multipart/alternative; boundary=089e0115fd02c99c94050e3c91fc Subject: Re: [PHP-DEV] What do we need strict scalar type hints for? From: dmitry@zend.com (Dmitry Stogov) --089e0115fd02c99c94050e3c91fc Content-Type: text/plain; charset=UTF-8 Hi Yasuo, You probably talk about https://wiki.php.net/rfc/expectations I wasn't the author of idea, I just helped with thoughts and implantation. I think it may be useful for PHP7. Thanks. Dmitry. On Tue, Feb 3, 2015 at 11:12 PM, Yasuo Ohgaki wrote: > 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 > --089e0115fd02c99c94050e3c91fc--