Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I access macro docstrings in the repl? #892

Closed
gilch opened this issue Aug 12, 2015 · 3 comments
Closed

How do I access macro docstrings in the repl? #892

gilch opened this issue Aug 12, 2015 · 3 comments

Comments

@gilch
Copy link
Member

gilch commented Aug 12, 2015

The macros defined in Hy all seem to have docstrings, but I looked through the docs and can't figure out how to access them in the repl.

@algernon
Copy link
Member

See #356, which is related.

@gilch gilch mentioned this issue Apr 11, 2016
@jkitchin
Copy link

See https://github.com/jkitchin/hy/blob/hydoc/hy/core/hylp.hy#L154 For one approach to getting the doc string.

=> (. (get hy.macros._hy_macros nil "with") doc)
u'shorthand for nested with* loops:\n (with [x foo y bar] baz) ->\n (with* [x foo]\n (with* [y bar]\n baz))'
=>

@Kodiologist
Copy link
Member

I'm going to close this since #356 is about the same thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants