Documentation strings, declarations, markup, metadata Lassi Kortela (25 May 2024 10:32 UTC)
Re: Documentation strings, declarations, markup, metadata Lassi Kortela (25 May 2024 10:53 UTC)
Re: Documentation strings, declarations, markup, metadata Antero Mejr (25 May 2024 11:07 UTC)
Re: Documentation strings, declarations, markup, metadata Lassi Kortela (27 May 2024 17:02 UTC)
Re: Documentation strings, declarations, markup, metadata Jens Axel Søgaard (27 May 2024 17:22 UTC)
Bodies in COND, CASE, WHEN, UNLESS, and DO Sergei Egorov (04 Jun 2024 20:30 UTC)
Re: Bodies in COND, CASE, WHEN, UNLESS, and DO Jakub T. Jankiewicz (05 Jun 2024 18:50 UTC)
Re: Bodies in COND, CASE, WHEN, UNLESS, and DO Arthur A. Gleckler (19 Jun 2024 17:54 UTC)
Re: Bodies in COND, CASE, WHEN, UNLESS, and DO Jakub T. Jankiewicz (19 Jun 2024 20:10 UTC)
Re: Bodies in COND, CASE, WHEN, UNLESS, and DO Jakub T. Jankiewicz (19 Jun 2024 20:21 UTC)
Re: Documentation strings, declarations, markup, metadata Lassi Kortela (27 May 2024 20:32 UTC)
Re: Documentation strings, declarations, markup, metadata Jakub T. Jankiewicz (27 May 2024 21:41 UTC)
Re: Documentation strings, declarations, markup, metadata Jakub T. Jankiewicz (25 May 2024 11:51 UTC)
Re: Documentation strings, declarations, markup, metadata Jakub T. Jankiewicz (25 May 2024 12:02 UTC)
Re: Documentation strings, declarations, markup, metadata Lassi Kortela (27 May 2024 17:21 UTC)

Re: Documentation strings, declarations, markup, metadata Lassi Kortela 27 May 2024 17:01 UTC

> I disagree with the characterization that this is "not general enough to
> warrant a # character". I think a general documentation comment syntax
> warrants a # character more than a specific #markup language would.

Respectfully,

You are coupling two orthogonal concerns into one syntax:

1. Lexical structure (i.e. another syntax for free-form text).

2. Purpose (i.e. metadata; specifically documentation).

Coupling orthogonal concepts is the fastest way to crowd out limited
syntactic space. From experience, I oppose any proposal which does that.

Furthermore, I suspect documentation is not special enough kind of data
to deserve its own character under #. (From the Zen of Python: "Special
cases are not special enough to break the rules.")

The use case of attaching documentation to any datum is not convincing.
It does not sound useful enough to warrant a one-character shorthand
under #. The use case for a general mechanism to attach any kind of
metadata to any datum is more convincing, and this is what Clojure
offers with a one-character shorthand. (I'm neutral on that feature;
don't have enough experience to be for or against.)

Since you don't offer a standard way for programmers to indicate what
markup language is used for a documentation fragment, we are passing the
buck on this important practical problem. (Putting a magic substring
near the start of a documentation string, or giving flags to tools, are
not reasonable ways to solve the problem. That's what we have now.)

A distinction should be made between # followed by a punctuation
character, which is a very crowded namespace, and # followed by a word,
which is not crowded. I guess #doc"foo" for documentation would be
appropriate, but I haven't worked through the implications.