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 25 May 2024 10:53 UTC

> that declarations are a kind of metadata. (Declarations are for the
> compiler and interpreter, whereas metadata is for the application, but I
> suspect the distinction would get muddy eventually.)

My bad. It already is muddy in Clojure.

It seems the docstring is stored in :doc.

user=> (pprint (meta #'+))
{:added "1.2",
  :ns #object[clojure.lang.Namespace 0x3e134896 "clojure.core"],
  :name +,
  :file "clojure/core.clj",
  :inline-arities
  #object[clojure.core$_GT_1_QMARK_ 0x5b78fdb1
"clojure.core$xxxxxx@5b78fdb1"],
  :column 1,
  :line 986,
  :arglists ([] [x] [x y] [x y & more]),
  :doc
  "Returns the sum of nums. (+) returns 0. Does not auto-promote\n
longs, will throw on overflow. See also: +'",
  :inline
  #object[clojure.core$nary_inline$fn__5606 0x3f36b447
"clojure.core$nary_inline$xxxxxx@3f36b447"]}