As others have noticed, some libraries are lacking in documentation. I
suggest we implement a standard, and require that every function and
procedure have notes that fit within a template.

I also think some may disagree because they dislike writing notes and
may find this overkill since notes could be longer then the procedure
it's self. However, documentation helps everyone in understanding,
updating and using libraries.

This may also allow IDE's to understand what arguments are required
for procedures and report to the user.

"Return Values" could be only required on functions. "Notes" can be
optional. "Arguments" can be dependant on if the procedure actually
has arguments.

Of course, I question how we could enforce this. Maybe all newly
committed items should have standard notes on procedures?

I am showing an example below for the print library which currently
has no notes on procedures. What do you guys think?

--------------------------------------------------------------------------------
-- Sends a byte value in hex ASCII characters to an output device.
--
-- Arguments
-- -- device : The output device
-- -- data   : Data to send to the device
--
-- Return Values
-- -- None
--
-- Notes
-- -- None
--------------------------------------------------------------------------------
procedure print_byte_hex(volatile byte out device, byte in data)
is

   if (print_prefix) then
      device = "0"
      device = "x"
   end if

   device = nibble2hex[0x0F & (data>>4)]
   device = nibble2hex[0x0F & (data)]

end procedure

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to