[wp-hackers] Inline documentation

Rich Bowen rbowen at rcbowen.com
Fri Feb 17 15:05:57 GMT 2006


Abhay Kumar wrote:
>>> [snip]
>>> Yes, that is PHPDoc, and it seems to match perfectly with what I would
>>> like to see in the core, (nothing really complex like what Rich has, I
>>> love the effort, but the format he suggested in the other list is
>>> rather...ick.
>> Could you elaborate on this? "ick" is rather non-descriptive, and more
>> detail would be greatly appreciated.
> 
> He is talking about this:
> 
>> +/** current_time( $type = ('mysql'|'timestamp')
>> +*               [ , $gmt = (true|false) ] )
>> +*/
>>  function current_time($type, $gmt = 0) {
> 
> from your other post. That's not as useful as something like this:
> 
> /**
>   * @param type string 'mysql' | 'timestamp'
>   * @param gmt boolean
>   * @return whatever
>   */
> function current_time($type, $gmt = 0) {

I was hoping for some clarification on the term "ick", which doesn't
mean much. I suppose that sort of answers for this particular case.

The syntax "@param" doesn't mean anything to me. Why "@" on that? Is
that supposed to signify something that I'm missing?

-- 
Rich Bowen
rbowen at rcbowen.com


More information about the wp-hackers mailing list