caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: John Max Skaller <skaller@ozemail.com.au>
To: Markus Mottl <mottl@miss.wu-wien.ac.at>
Cc: David Mentre <David.Mentre@inria.fr>,
	Fabrice Le Fessant <fabrice.le_fessant@inria.fr>,
	caml-list@inria.fr
Subject: Re: [Caml-list] Re: About documentation tools
Date: Thu, 10 May 2001 04:17:30 +1000	[thread overview]
Message-ID: <3AF989BA.7C9E5E8F@ozemail.com.au> (raw)
In-Reply-To: <20010509151828.A16874@miss.wu-wien.ac.at>

Markus Mottl wrote:

> It's a
> reasonable assumption that Xavier and the others prefer hacking away on
> new compiler features rather than such things and would need engineers
> for more earthly tasks.

	I don't think this is as reasonable as you say.
In principle, an Ocaml module interface should specify semantics.
However, Ocaml doesn't include language constructs to specify
the axioms the interface obeys: they have to be given as comments.

	Some languages, like Eiffel, actually support constructions
for specifying function preconditions.

	So it actually makes sense to allow axioms to be
specifed in a module interface _as part of the language_,
even if it is only a special form of comment containing
vague natural language text.

	I'm not suggesting this, only that Xavier may be more
interested than you think in formalising a documentation
protocol designed to supply the missing information.

> I don't know Java (and therefore javadoc) well enough to judge this
> (maybe at least javadoc is well-designed), but I'd surely argue against
> taking up inferior approaches if we can do things the right way right
> from the start.

	Ocamlweb -- and Javadoc -- are 'inferior' approaches.
A fully fledged literate programming tool is a better solution.
But it requires a 'heavy' committment to literate programming
many are not willing to make. So a more lightweight approach
is a reasonable compromise.

	I note that many Java programmers I have talked to
think Javadoc is one of the best things about Java. :-)
I also note that perldoc has served Perl users well.
Python's doc strings do not work as well. A C++ system I have
worked on used a convention suitable for generating 'man' pages.

	Unlike proper LP tools, these things never generate
enough of the right documentation. But at least they generate
_some_, which is better than none at all. Even though I use
a powerful LP tool, I'd adhere to an ocaml convention,
and I'd also use the standard ocamldoc tool in addition 
to the LP tool I use.

	One comment though: a modern tool must generate
HTML, _directly_. It is not good enough to generate LaTeX,
and then translate it into HTML. Please, I want _one_ tool,
not a long complicated error prone chain to add to my
existing chain :-)

-- 
John (Max) Skaller, mailto:skaller@maxtal.com.au
10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850
checkout Vyper http://Vyper.sourceforge.net
download Interscript http://Interscript.sourceforge.net
-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr


  reply	other threads:[~2001-05-13 20:24 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-07  9:06 [Caml-list] CDK binary release Fabrice Le Fessant
2001-05-07 16:09 ` Miles Egan
2001-05-07 17:17 ` John Max Skaller
2001-05-09 10:58 ` Markus Mottl
2001-05-09 12:01   ` [Caml-list] About documentation tools David Mentre
2001-05-09 13:18     ` [Caml-list] " Markus Mottl
2001-05-09 18:17       ` John Max Skaller [this message]
2001-05-09 17:58   ` [Caml-list] CDK binary release John Max Skaller
2001-05-09 22:40     ` Markus Mottl
2001-05-09 23:19       ` John Max Skaller
2001-05-10  9:19         ` Fabrice Le Fessant
2001-05-10 10:34           ` [Caml-list] CDK Documentation format Dave Mason
2001-05-13 21:26             ` Stefan Monnier
2001-05-10 11:16           ` [Caml-list] CDK binary release Sven LUTHER
2001-05-10 13:18             ` Markus Mottl
2001-05-10 15:42               ` Jean-Christophe Filliatre
2001-05-10 16:08                 ` Thorsten Ohl
2001-05-10 22:53                   ` Markus Mottl
2001-05-10 20:36                 ` John Max Skaller
2001-05-10 14:01             ` David Mentre
2001-05-10 15:09             ` Patrick M Doane
2001-05-10 15:06           ` Patrick M Doane
2001-05-11 11:58             ` Fabrice Le Fessant
2001-05-11 15:31               ` John Max Skaller
2001-05-11 15:44                 ` Fabrice Le Fessant
2001-05-13 21:33                 ` Stefan Monnier
2001-05-11 17:30               ` Patrick M Doane
2001-05-12  7:46                 ` Fabrice Le Fessant
2001-05-11 23:24               ` Brian Rogoff
2001-05-10 15:49           ` John Max Skaller
2001-05-14  8:21 ` Olivier Andrieu

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=3AF989BA.7C9E5E8F@ozemail.com.au \
    --to=skaller@ozemail.com.au \
    --cc=David.Mentre@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=fabrice.le_fessant@inria.fr \
    --cc=mottl@miss.wu-wien.ac.at \
    /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.
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).