Skip to content

Revise should track macro-created functions defined in the REPL #94

@cjwyett

Description

@cjwyett
macro makefn(name)
    name = Symbol(name)
    quote
        $(esc(name))() = print("hello")
    end
end

julia> @makefn f
f (generic function with 1 method)

julia> f()
hello

julia> @code_string f()
"        \$(esc(name))() = println(\"hello\")"

In an ideal world, @code_string f() would return something like f() = println(\"hello\")".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions