Re: Flexible type hinting

From: Date: Fri, 03 Jul 2009 13:04:30 +0000
Subject: Re: Flexible type hinting
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-44678@lists.php.net to get a copy of this message
Hi Ilia, On Thu, Jul 2, 2009 at 3:35 AM, Paul Biggar<paul.biggar@gmail.com> wrote: > Thanks to Ilia for getting to ball rolling on scalar type hinting. > I believe I have a solution that caters to each crowd, without being > too complicated. My impression is that there only minor support for the "flexible" approach, and that even then, everyone prefers strict checking by default. So the ideal seems to be your patch, with the addition of function x ((int) $casted_parameter) { ... } Since this can be built as an extra step on top of your patch, this can be added later (although it would obviously be great if you preferred to add it now...). I recommend you proceed with the next step of getting your patch accepted (I presume an RFC or something). Thanks, Paul -- Paul Biggar paul.biggar@gmail.com

« previous php.internals (#44678) next »