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

From: Date: Thu, 05 Feb 2015 02:04:51 +0000
Subject: Re: What do we need strict scalar type hints for?
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-81857@lists.php.net to get a copy of this message
On Feb 5, 2015 7:58 AM, "Stanislav Malyshev" <smalyshev@gmail.com> wrote: > > Hi! > > > Adding another concept, not changing the existing ones. And really, > > it's just simplifying what is already present via is_<typename>() > > runtime checks, making our lives a little bit easier. > > There's a very big difference between allowing to check types (and then > do whatever you wish) and having functions throw fatal errors if types > do not match. Totally agree. However, to be sure everyone understands it, you, as an user of a library using strict mode, won't see it. I agree that a library using strict and release untested code may be an issue, but then it is a bug on the library itself, no biggie to fix. > -- > Stas Malyshev > smalyshev@gmail.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.internals (#81857) next »