mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: documenting musl
Date: Sun, 9 Sep 2012 00:15:58 -0400	[thread overview]
Message-ID: <20120909041558.GE27715@brightrain.aerifal.cx> (raw)
In-Reply-To: <1CAEF50B-DAB5-4B88-9B74-0334D628B0AF@gmail.com>

On Sat, Sep 08, 2012 at 08:09:51PM -0700, nwmcsween@gmail.com wrote:
> IMO documentation should be inline with code, I've banged my head on
> the wall countless times reading musl source wrt linuxisms, etc. a
> good inline doc style is Rocco style literate inline documentation /
> Donald Knuth style literate documentation. I also doubt any normal
> inline documentation has any measurable compiler overhead.

I acknowledge this would have benefits for understanding how the code
works (the hackers' manual), but it's not a substitute for a
standalone manual for somebody who's not trying to understand the code
but just wants to use it. If we were not implementing standards (real
and de facto ones) but instead newly designed interfaces, it might
make sense to have interface contract documentation for library users
inline with the code (or headers) and generate standalone docs from
there. But documenting all the outward behavior of every function in
libc is really orthogonal to musl, and POSIX has already done a fine
job of most of it...

Rich


  reply	other threads:[~2012-09-09  4:15 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-08  2:40 Rich Felker
2012-09-08  6:36 ` Isaac Dunham
2012-09-08  8:44   ` Daniel Cegiełka
2012-09-08 11:48     ` Kurt H Maier
2012-09-08 12:35       ` Daniel Cegiełka
2012-09-08 12:46         ` Rich Felker
2012-09-08 12:53           ` Daniel Cegiełka
2012-09-08 12:47         ` Kurt H Maier
2012-09-08 13:12           ` Daniel Cegiełka
2012-09-08 13:16             ` Kurt H Maier
2012-09-08 13:42               ` Daniel Cegiełka
2012-09-08 14:09                 ` Kurt H Maier
2012-09-09  1:43             ` John Spencer
2012-09-08 14:24           ` Isaac Dunham
2012-09-08 15:07   ` Isaac Dunham
2012-09-08 19:46   ` Szabolcs Nagy
2012-09-08 11:44 ` Justin Cormack
2012-09-08 14:53   ` Isaac Dunham
2012-09-09  3:09 ` nwmcsween
2012-09-09  4:15   ` Rich Felker [this message]
2012-09-09  4:15     ` nwmcsween
2012-09-09  6:12       ` Rich Felker
2012-09-09  8:04     ` Justin Cormack

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120909041558.GE27715@brightrain.aerifal.cx \
    --to=dalias@aerifal.cx \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).