Open phoe opened 6 years ago
This is mostly supported now in the dev branch. Only mostly supported, because it works on SBCL but not on Clozure -- Clozure seems to discard the docstrings of lambdas. I might have to look into fixing that in Clozure itself.
Clozure seems to discard the docstrings of lambdas
What do you mean? How exactly do you set the documentation of an anonymous function?
The canonical way mentioned by http://clhs.lisp.se/Body/f_docume.htm (http://clhs.lisp.se/Body/f_docume.htm) is (setf (documentation 'foo 'function) "sadfasdfsdfsdf")
I can see multiline docstrings as required in SBCL.
GATEWAY/SQL> (describe 'select-players-by-display-name)
GATEWAY/SQL:SELECT-PLAYERS-BY-DISPLAY-NAME
[symbol]
SELECT-PLAYERS-BY-DISPLAY-NAME names a compiled function:
Lambda-list: (CL-YESQL/STATEMENT::?0 &KEY
(CL-YESQL-USER::LIMIT
(REQUIRED-ARGUMENT 'CL-YESQL-USER::LIMIT)))
Derived type: (FUNCTION (T &KEY (:LIMIT T)) *)
Documentation:
Selects an ordered list of players whose display name is similar to the argument.
At most :LIMIT players are returned.
Inline proclamation: NOTINLINE (no inline expansion available)
Source file: /home/phoe/Projects/Lisp/Gateway/src/sql/yesql/player.sql
I hereby request a feature where, given CL-YESQL code,
evaluating
returns
"Counts the users in a given country."
Please make it work for multiline comments as well.