Re: new extension: strict

From: Date: Mon, 17 Nov 2014 08:33:06 +0000
Subject: Re: new extension: strict
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-12411@lists.php.net to get a copy of this message
No objections here. Despite not being in the strict camp, it looks like fun. On 17/11/14 08:58, Joe Watkins wrote: > Morning chaps, > > I want to create a pecl package for > https://github.com/krakjoe/strict > > PHP7 might get strict scalar type hints before release, or it might > not. > > This extension introduces support for strict scalar parameter type > hints from 5.4 up to 7, if support is introduced in 7, I shall remove it > from the extension, thereby providing a good approximation of > compatibility. > > There is an RFC in progress for casting functions which shall be > imported into the extension for 5 series if the RFC passes for 7. > > If that RFC does not pass, I intend to introduce a strict_cast > function. > > The only real limitation of the extension is that you cannot use > default values in declarations, because the parser doesn't understand > Class $name = 1, for example. -- Regards, Mike

« previous php.pecl.dev (#12411) next »