[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: docstrings and elisp reference
From: |
Yuri Khan |
Subject: |
Re: docstrings and elisp reference |
Date: |
Sat, 10 Jun 2017 15:22:13 +0700 |
On Sat, Jun 10, 2017 at 10:19 AM, Richard Stallman <address@hidden> wrote:
> > - the type of the function return value
>
> That is not crucial in Lisp the way it is in Java.
> Unlike Java, Lisp does not declare or limit the type of any values.
>
> In some cases we document what the type will actually be,
> using English text.
And that documentation is immensely helpful.
Moreover, I will hazard a guess that any attempt to shoehorn that
documentation into a formal type description language will limit its
usefulness to readers.
As anecdotal evidence, I will offer an example. XML is a hierarchical
dynamically-typed data structure, very similar to Lisp S-expressions
in terms of capabilities. In order to be able to document and validate
permissible constructs, people devised not one but two formal
languages: DTD and XML Schema. Of these, the latter is itself
XML-based, and thus very appealing to implementors.
The resulting schema documents are very verbose and hard to read, even
for a trained professional. The programming equivalent of legalese.
- Re: docstrings and elisp reference, (continued)
- Re: docstrings and elisp reference, Richard Stallman, 2017/06/09
- Re: docstrings and elisp reference, Eli Zaretskii, 2017/06/10
- Re: docstrings and elisp reference, Richard Stallman, 2017/06/10
- Re: docstrings and elisp reference, Richard Stallman, 2017/06/10
- Re: docstrings and elisp reference, Stefan Monnier, 2017/06/11
- Re: docstrings and elisp reference, Richard Stallman, 2017/06/11
- Re: docstrings and elisp reference, Stefan Monnier, 2017/06/11
- Re: docstrings and elisp reference, Richard Stallman, 2017/06/12
- Re: docstrings and elisp reference,
Yuri Khan <=
- Re: docstrings and elisp reference, Richard Stallman, 2017/06/09
- Re: docstrings and elisp reference, Joost Kremers, 2017/06/06
- Re: docstrings and elisp reference, Stefan Monnier, 2017/06/07
- Re: docstrings and elisp reference, Yuri Khan, 2017/06/07
- Re: docstrings and elisp reference, Stefan Monnier, 2017/06/07
- RE: docstrings and elisp reference, Drew Adams, 2017/06/07
- Re: docstrings and elisp reference, Eli Zaretskii, 2017/06/07
- Re: docstrings and elisp reference, Dmitry Gutov, 2017/06/06
- RE: docstrings and elisp reference, Drew Adams, 2017/06/06
- Re: docstrings and elisp reference, Dmitry Gutov, 2017/06/06