[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Scheme file docstring format
From: |
Michael Livshin |
Subject: |
Re: Scheme file docstring format |
Date: |
21 Feb 2001 12:51:21 +0200 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Crater Lake) |
Neil Jerram <address@hidden> writes:
> Moi> [ what is occupancy? ]
>
> Sorry! I just meant the memory required to store the docstrings as
> part of loaded code.
duh! don't be sorry, I was obviously being dumb.
but occupancy is an "easily" solvable problem (i.e. a SMOP), anyway.
;;-----------------------------------
I see people talking about various intricate details of snarfing info
from Scheme files. I don't see people addressing more fundamental
questions concerning "snarfing" as a concept and its
relevance/applicability to Scheme code.
* what happens when you load a file into Guile?
* what happens when you do C-M-x on a function in Emacs?
I think that any method of documenting Scheme code that we agree on
_must_ work well in the above two situations.
that's why I'm saying (not very clearly, alas, sorry about that) that
any "tool" solution (i.e. some separate snarfer script) looks wrong to
me.
the actual syntax and placement of documentation text is less
important, as long as the reader (a snarfer script or, as I see it,
the `read' function) is able to see it and reliably associate it with
the appropriate syntactic entity.
it's also worth noting that a snarfer script would tend to associate
documentation with names, not objects. and this would be very wrong,
too.
it's also worth noting that some people will no doubt want to write
macros that work like this:
;; macro call
(define-frob baz (a b c))
;; expansion
(begin
(define baz-rtd (define-record-type #:fields '(a b c)
#:doc
"baz: a frob record type"))
(define (twiddle-baz obj)
"twiddle a baz frob."
...)
...)
how would you snarf such things?
--
I knew you weren't really interested.
- Re: Scheme file docstring format, (continued)
- Re: Scheme file docstring format, thi, 2001/02/18
- Re: Scheme file docstring format, Michael Livshin, 2001/02/18
- Re: Scheme file docstring format, Neil Jerram, 2001/02/18
- Re: Scheme file docstring format, Michael Livshin, 2001/02/19
- Re: Scheme file docstring format, Neil Jerram, 2001/02/19
- Re: Scheme file docstring format, Carl R. Witty, 2001/02/20
- Re: Scheme file docstring format, Neil Jerram, 2001/02/20
- Re: Scheme file docstring format,
Michael Livshin <=
- Re: Scheme file docstring format, Martin Grabmueller, 2001/02/21
- Re: Scheme file docstring format, Michael Livshin, 2001/02/21
Re: Scheme file docstring format, Neil Jerram, 2001/02/18