Re: type hinting

From: Date: Fri, 04 Jan 2008 18:50:23 +0000
Subject: Re: type hinting
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-34464@lists.php.net to get a copy of this message
On Fri, 2008-01-04 at 13:22 -0500, Ilia Alshanetsky wrote: > 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. > Well it would be much easier to type hint than to manually document every one of your function parameters. > 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. Very good point.

« previous php.internals (#34464) next »