Re: What do we need strict scalar type hints for?

From: Date: Wed, 04 Feb 2015 05:36:30 +0000
Subject: Re: What do we need strict scalar type hints for?
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-81760@lists.php.net to get a copy of this message
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 <yohgaki@ohgaki.net> wrote: > Hi Dmitry, > > On Mon, Feb 2, 2015 at 6:12 PM, Dmitry Stogov <dmitry@zend.com> 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 >

« previous php.internals (#81760) next »