Suggestion: docstrings #540
Labels
No labels
UX
active development
backlog
blocker
bootstrap
bounty
bug
dependencies
discussion
documentation
duplicate
enhancement
flaky test
help wanted
invalid
javascript
question
release
tendentious
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mighty-gerbils/gerbil#540
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
After asking about docstrings, @vyzo recommended opening an issue to encapsulate discussion.
There was previous discussion about it in gitter on May 26th.
Some points brought up were around:
(describe proc)would be an ideal interfaceMy scenario
As a very new Gerbil/Scheme user, I wanted to check out its testing facilities. I came across the documentation for :std/test.
Everything within the module is noted Please document me!.
Given that, I thought I'd just drop something in the repl to see what would happen.
I then tried out
(doc run-tests!)and some variants to see the shape of the code (maybe argument names?). No luck. Having written some Clojure and Janet in the past, I figured I was missing a keyword or something.So I went to gitter to ask.
Thoughts on where gerbil should head?
I agree that
describeis an ideal interface for accessing documentation, perhaps after an import; this can be performed automatically by:std/interactiveso that you always get it when you run an interactive gxi shell.I have been thinking quite a bit about this issue, and I think it's best to generate the documentation from the
docfolder. This can be done as part of the build, we could parse the markdown files and extract an index which can then be referenced by code in the stdlib.Also note that the stdlib is (by default) compiled with debug symbols, so that you can do
(pp some-stdlib-procedure)and get the actual (expanded) code of the procedure.@vyzo I followed https://www.logc.net/posts/gerbil-development/ , and I don't have anything except syntax highlighting and send-to-REPL setup on my Emacs. No documentation, no go-to-definition, no auto-completion. Is my config wrong, or is it just what gerbil offers right now?
Update: After doing
(visit-tags-table "/usr/local/Cellar/gerbil-scheme/0.16/share/gerbil/TAGS")and usingcompany-etags, my auto-complete works, though I still need to manually generate tags for my own code.See #803