-
Notifications
You must be signed in to change notification settings - Fork 31
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
Provide BODY #54
Comments
Not sure how easy it is to actually get the function body through the Julia APIs? |
I thought that this was all part of a macro and that the
Doesn't look so good JuliaLang/julia#24347 |
julia> Core.atdoc!((args...)->(global dbg = args))
(::#1) (generic function with 1 method)
julia> @doc """ Testing """ f(x, y=2; z=3) = "hello" * y
(" Testing ", :(f(x, y=2; z=3) = begin # REPL[2], line 1:
"hello" * y
end)) Seems like it's available after all, and it's just a matter of extracting it from the AST. |
Will be pretty simple to add once #133 is merged. |
Sometimes, short functions are best documented by their full definition (and sometimes I'm just lazy). It would be nice if
$(BODY)
was replaced withlog(p / (1 - p))
.The text was updated successfully, but these errors were encountered: