From: Thomas Fischbacher <Thomas.Fischbacher@Physik.Uni-Muenchen.DE>
To: caml-list@inria.fr
Subject: Ocamldoc question/suggestion
Date: Mon, 14 Nov 2005 14:31:05 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.61.0511141417530.2435@eiger.cip.physik.uni-muenchen.de> (raw)
While it is nice that ocamldoc can auto-generate documentation from .mli
files, it would be very useful if one could just put more information into
.mli files which is irrelevant to the compiler, but displayed faithfully
in the documentation. Two major points come to my mind: (1) names of type
jokers, and (2) embedded comment annotations.
When documenting a function like:
let pointwise comp f g x = comp (f x) (g x)
I would *love* to be able to just put something along the following lines
into the .mli file so that it ends up in the documentation:
===>
val pointwise : ('val_f -> 'val_g -> 'val_f_op_g) (* op *)
-> ('x -> 'val_f) (* f *) -> ('x -> 'val_g) (* g *)
-> ('x -> 'val_f_op_g) (* f_op_g *)
(** One re-occurring construction is the point-wise combination
of two functions: given two functions [f], [g], which have
the same domain, and a binary operation [op] defined on the co-domains
of those functions, we can obtain a new function by mapping a value
[x] to the result of applying the given operation to [f(x)]
and [g(x)], which we will call [f_op_g].
*)
<===
as far as I can tell, this is not possible right now. Or is it?
--
regards, tf@cip.physik.uni-muenchen.de (o_
Thomas Fischbacher - http://www.cip.physik.uni-muenchen.de/~tf //\
(lambda (n) ((lambda (p q r) (p p q r)) (lambda (g x y) V_/_
(if (= x 0) y (g g (- x 1) (* x y)))) n 1)) (Debian GNU)
reply other threads:[~2005-11-14 13:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=Pine.LNX.4.61.0511141417530.2435@eiger.cip.physik.uni-muenchen.de \
--to=thomas.fischbacher@physik.uni-muenchen.de \
--cc=caml-list@inria.fr \
/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