Re: [PATCH] Optional scalar type hinting
| From: | Sam Barrow | Date: | Mon, 19 Nov 2007 13:19:45 +0000 |
| Subject: | Re: [PATCH] Optional scalar type hinting | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-33309@lists.php.net to get a copy of this message | ||
I just finished redoing this patch by the way, it's available on
sambarrow.com, along with my custom superglobals patch.
On Mon, 2007-11-19 at 15:17 +0300, Alexey Zakhlestin wrote:
> On 11/19/07, Richard Quadling <rquadling@googlemail.com> wrote:
>
> > What if type hinting just generated an E_NOTICE. Nothing more for the
> > time being.
> >
> > Call it an experimental option.
> >
> > I already use hungarian notation for all my params ( cause I'm
> > unimaginative with my var names I suppose!), so the type hinting would
> > help me enforce this and reduce errors in the long run (code goes from
> > me to other developers who only glance at the dox)
>
> I like this idea
>
> but E_STRICT seems to fit better :)
>
> --
> Alexey Zakhlestin
> http://blog.milkfarmsoft.com/
>