Re: [PATCH] Optional scalar type hinting
| From: | Alexey Zakhlestin | Date: | Mon, 19 Nov 2007 12:17:27 +0000 |
| Subject: | Re: [PATCH] Optional scalar type hinting | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-33303@lists.php.net to get a copy of this message | ||
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/