RE: [PHP-DEV] type hinting
| From: | Andi Gutmans | Date: | Fri, 04 Jan 2008 18:37:04 +0000 |
| Subject: | RE: [PHP-DEV] type hinting | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-34443@lists.php.net to get a copy of this message | ||
I think the "mixed" identifier is a minor issue but I also don't see
it's purpose. If you don't want type hinting then don't write a type
hint. It's also tool friendly...
Andi
> -----Original Message-----
> From: Ilia Alshanetsky [mailto:ilia@prohost.org]
> Sent: Friday, January 04, 2008 10:23 AM
> To: Stas Malyshev
> Cc: internals Mailing List
> Subject: Re: [PHP-DEV] type hinting
>
>
> On 4-Jan-08, at 1:20 PM, Stanislav Malyshev wrote:
>
> >> layer. It also makes the code far more readable and understandable
> >> not the mention help doc generation tools that interrogate the
code.
> >
> > I was under impression that it is good manners to actually document
> > your code and not rely on the tools to "interrogate" your code. Of
> > course, not everybody has good style, but I don't see much value in
> > changing language so that people writing in bad style would feel
> > more comfortable.
>
> If you can offload type documentation you can make better use of your
> time documenting the logic of the code, there is something to be said
> about self documenting code especially when doing things like WSDL
> generation.
>
> Ilia Alshanetsky
>
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php