[Y-devel] Technical Notes
Kyle Girard theycallmecoach at rogers.com
Thu Feb 26 23:22:45 GMT 2004
> Well, the disjoint nature of Y's client API means the documentation for
> client libraries wouldn't be found in the server code anyway.
True, but I wasn't only thinking about the client side libraries. The
server should documentation too
<snip>
> are fine. What I don't like is comments like:
>
> /**
> * Do \param:x to \param:y using \param:z.
> * @param x the \type:thing to do
> * @param y the \type:thing to be done
> * @param z the \type:thing to do it with
> * @returns \literal:true if it was done successfully
> */
> doThing (thing x, thing y, thing z)
> {
> ...
<snip>
Yikes! That IS horrible. I've never used javadoc comments like that... I
would most likely do something like this:
/**
* Do x to y using z.
*
* @param x the thing to do
* @param y the thing to be done
* @param z the thing to do it with
*
* @returns true if it was done successfully
*/
doThing(thing x, thing y, thing z)
{
....
It's kinda of a compromise between the two above types of commenting. It
is easy to read and is Doxygen friendly. Doxygen will highlight or
create links to types for you so there is no need to do the \type: and
\literal: which makes the comments difficult to read while in the code
but probably creates pretty html.
--
Kyle Girard <theycallmecoach at rogers.com>
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved