JuliaCollections / Memoize.jl

@memoize macro for Julia
Other
177 stars 22 forks source link

Cannot document memoized functions #25

Closed cstjean closed 4 years ago

cstjean commented 6 years ago
julia> using Memoize

julia> """ double x """ @memoize f(x) = x+x
ERROR: cannot document the following expression:

@memoize f(x) = begin  # REPL[4], line 1:
            x + x
        end

'@memoize' not documentable. See 'Base.@__doc__' docs for details.

Stacktrace:
 [1] error(::String, ::String, ::Vararg{String,N} where N) at ./error.jl:30
kmsquire commented 4 years ago

This is fixed on master (but not on the released version).

kmsquire commented 4 years ago

Also works in #44, which is an updated version of @cstjean's rewrite of the macro.