Guile Mailing List Archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scheme documentation question.



> > I realize that doing:
> > 
> >    (define-public variable doc-string value)
> > 
> > would break lots of code, but how about:
> > 
> >    (define-public variable value optional-doc-string)
> > 
> > Can't this be made to work?
> 
> This is a question more for the guile folks I think.  Variables don't
> have doc strings attached.  We could add a syntax:
> 
> (define-documented-variable VAR DOC-STRING VALUE)

Is anything wrong with:

(document-variable VAR DOC-STRING)

OK, I'll admit that you must type the variable name twice
and you might spell it wrong the second time, but why go for
something complicated when something simple will work?
Is it necessary for one function to do everything?

	- Tel

Guile Home | Main Index | Thread Index