Skip to content

Should we rename definition to code_expr and code_string? #46

@timholy

Description

@timholy

It belatedly occurs to me that definition is essentially part of the code_* family, returning the source AST and string associated with a method definition. Should we change the name, or do people prefer the current naming?

EDIT: to be completely clear, it might look like this:

julia> using CodeTracking, Revise

julia> using Colors

julia> c = RGB(1,0,0)
RGB{N0f8}(1.0,0.0,0.0)

julia> @code_expr red(c)
:(red(c::AbstractRGB) = begin
          #= /home/tim/.julia/packages/ColorTypes/TvB32/src/traits.jl:14 =#
          c.r
      end)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions