-
Notifications
You must be signed in to change notification settings - Fork 15
Docile and Julia 0.4 #56
Comments
As far as I'm aware the plan is to eventually have Docile superseded by the I'm haven't managed to work out a way to get the two From what I've gathered the plan is to do away with the macro all together and rather use plain strings above methods, types etc. to document them. That's not available in Base yet. (Edit: JuliaLang/julia#8965). I've recently got the equivalent syntax working in Docile master branch. There may still be a few issues with it though and Lexicon/Docile interaction may be slightly broken when using it. |
Thanks. This issue can be closed. It seems like a step down. For me, the main things lacking in Base are:
|
To cover the first use case, you can do (in Docile and foobar(x) = x
@doc "docs for foobar" ->
foobar That's a little bit annoying and the main reason the The other two points are probably worth raising over in the julia repo if there's not issues for them yet. |
So I've just pushed a special syntax to allow for documenting a generic function before it's been defined: using Docile
@document
"docs for generic function"
:foobar
foobar(x) = x Not perfect, but does the job with the new style plain docstrings. |
I like your special syntax for generic functions. On Tue, Jan 6, 2015 at 3:15 AM, Michael Hatherly notifications@github.com
|
It would be great to have a central issue for how to get these awesome changes into base (presumably in 0.5). Very exciting you can do this new syntax! Am I right in reading that you no longer even need |
I've avoided making an effort to get things integrated into base since there's still work to be done in places. Once that's done then yes, getting this better integrated would be good. Perhaps with precompilation and default packages Docile wouldn't even need to be part of base and could retain it's current release cycle (weeks instead of months).
That's correct, when using Lexicon's |
I don't understand the path forward with Docile and how it will work with the Base
@doc
functionality. I've seen the suggestions to check Julia's version number to decide whether to import Docile.Is Docile meant to be fully replaced by the
@doc
functionality in Base?Can Docile be used alongside the Base functionality? The
@doc
macro conflicts, but I haven't tested it beyond that.If I want to use the extended functionality of Docile in a package, can I use that, or will Base stomp on that in 0.4? I'd like to use the external file referencing feature and maybe the meta feature.
The text was updated successfully, but these errors were encountered: